mdb
48dedcfbcc
Changed getEncodedLocation() to getLocationEncoded() because I like it
...
more.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@129 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-26 23:20:38 +00:00
mdb
37a83abc67
Whoops. deliverMail() should be static.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@128 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-26 23:18:30 +00:00
mdb
c8ec99a93b
Created RequestUtils, a place for HTTP request related utility functions.
...
Added getLocation() and getLocationEncoded() which reconstruct the URL
used to make this request (complete with query parameters if there are
any). Modified UserManager to use getLocationEncoded() rather than doing
it itself.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@127 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-26 23:18:11 +00:00
mdb
ea519467c2
Modified to use new Queue member function names.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@126 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-26 23:16:56 +00:00
mdb
1c559d79ed
Added simple test case.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@125 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-26 07:10:09 +00:00
mdb
78b7a5deb5
Commented out debug logging.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@124 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-26 07:10:00 +00:00
mdb
ed6ecaeb2e
Close our JDBC statement when we're done with it.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@123 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-26 07:09:38 +00:00
mdb
a2f6c52828
Created a utility class for email related stuff. Currently supports
...
(primitive) delivery and address syntax checking.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@122 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-26 07:08:00 +00:00
mdb
a55f7a27f4
ensureConnection() and shutdown() should be synchronized as they can be
...
called by multiple threads and wouldn't cope well if they were.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@121 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-26 04:49:31 +00:00
mdb
c8a925c524
Added the facilities for persistent sessions which last 30 days rather
...
than one day. Also fixed a bug with pruning expired sessions.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@120 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-26 04:37:35 +00:00
mdb
f9163dc894
Fetch the templates via their path relative to the servlet root since we
...
now load everything through the servlet. This allows us to be totally
application root agnostic.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@119 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-26 03:24:19 +00:00
mdb
e0136b4ad8
Make sure to call ensureConnection() before accessing the database
...
directly (most calls should be via execute() but those that are not must
be sure that the connection is established).
git-svn-id: https://samskivert.googlecode.com/svn/trunk@118 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-26 03:23:22 +00:00
mdb
d2c770dafd
Added a main() that allows one to generate an encrypted password given a
...
username and the plaintext password.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@117 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-26 03:22:49 +00:00
mdb
98b01bd225
Modified the code to initiate the connection before the first action and
...
to ensure that we are connected before every database operation. This
allows our connection to transiently fail even after the first operation,
but then be properly established once the database is again available.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@116 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-26 03:22:25 +00:00
mdb
1b26f235c1
Removed Item from the method names (getItem() becomes get(), etc.).
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@115 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-25 18:44:39 +00:00
mdb
b3f2c29d12
Added the ability to invoke methods on objects directly (using
...
reflection).
git-svn-id: https://samskivert.googlecode.com/svn/trunk@114 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-25 18:44:01 +00:00
mdb
d8a3e42b26
Created a class to make throttling operations simpler.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@113 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-25 18:43:20 +00:00
mdb
485a2e118f
Whoops. Forgot to return from invokeTask() if the task completed
...
successfully.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@105 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-20 04:33:11 +00:00
mdb
40484d1f57
Created a utility for invoking tasks such that they can be retried by the
...
user if they fail (presumably after making some external change like
changing file permissions or restarting a database).
git-svn-id: https://samskivert.googlecode.com/svn/trunk@104 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-19 23:03:56 +00:00
mdb
e13e406cfd
Added the ability to retry operations if a transient failure occurs. Also
...
cleaned up connection handling so that the connection to the database can
properly be closed and reestablished on transient failure.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@103 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-19 22:59:08 +00:00
mdb
a6854ab613
Only try to close our connection object if it has successfully been
...
created in the first place.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@102 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-19 22:58:06 +00:00
mdb
d9df144cbf
Look in dist/classes rather than src/java now for our classes,
...
etc. because we build with ANT.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@100 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-15 19:34:06 +00:00
mdb
23cce67346
Dispatch task completions on the swing event thread.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@99 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-15 19:34:06 +00:00
mdb
53d7315932
Added getParameter().
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@98 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-15 19:33:37 +00:00
mdb
f0d5d50fe3
invoke() now takes an Application parameter.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@97 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-15 19:33:14 +00:00
mdb
ea9f65f24f
Added getDateParameter() which doesn't freak out if the date isn't set in
...
the form fields but does freak out if it's a bogus date.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@93 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-04 08:18:28 +00:00
mdb
21305787af
Created a class for path related utility functions.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@92 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-04 07:33:29 +00:00
mdb
170422e1f1
Modified things further. Moved message manager management entirely into
...
the default application. Derived applications now simply provide a message
bundle path if they want a message manager. Also now pass an application
reference to the logic instances when they are invoked so that they can
easily access application-wide resources.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@91 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-04 06:37:51 +00:00
mdb
7a45385168
Added some convenience functions for translating messages.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@90 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-04 06:25:48 +00:00
mdb
8ac811810b
If the application provides a message manager, use that to localize any
...
messages reported from a FriendlyException or from the exception map.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@89 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-04 06:22:17 +00:00
mdb
81710f70ec
Modified things to make handling of message resource bundles easier. We
...
now have an actual application class that's used by dispatched
applications. The message manager provides an easy interface into
localizing messages and MsgTool has a way to get at the message manager in
effect for whatever application is handling a request.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@88 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-04 06:15:39 +00:00
mdb
f96b4cc237
git-svn-id: https://samskivert.googlecode.com/svn/trunk@87 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-04 06:14:14 +00:00
mdb
b52c0431b6
Created a README in the lib directory indicating which external Java
...
packages are needed to use samskivert.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@86 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-03 22:33:32 +00:00
mdb
184f07a765
Eliminate build.sh because we use the debian ant package to compile now.
...
Modified build.xml to include jar files from the shared java directory
provided by Debian.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@85 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-03 22:17:02 +00:00
mdb
b594197590
Switched to the ANT build system from make.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@84 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-03 21:21:46 +00:00
mdb
75890dc814
Created a context tool that loads up a message bundle of translation
...
strings and allows templates to reference those translated strings easily.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@83 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-03 21:21:28 +00:00
mdb
3776c8ab74
Catch and handle redirect exceptions.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@82 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-03 21:20:13 +00:00
mdb
0cb96a2380
Use getSize() and getBounds() rather than size() and bounds(). The latter
...
are deprecated.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@81 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-03 21:19:48 +00:00
mdb
b1070329bb
Use BufferedReader rather than DataInputStream as it's the preferred thing
...
to do in Java 2.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@80 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-03 21:19:05 +00:00
mdb
9c5d045e1c
Whoops. Missing a space.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@79 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-02 07:39:32 +00:00
mdb
0708119f29
Added loadUserNames() and loadRealNames() for loading the user and real
...
names of a list of users who's userids are known.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@78 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-02 07:36:00 +00:00
mdb
13fa067cdf
Made UserRepository instance available via getter method.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@77 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-02 07:35:39 +00:00
mdb
f940a90847
Turned some helper classes into inner classes to avoid naming conflicts.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@76 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-02 05:31:13 +00:00
mdb
04f1a83125
Return the user object from login() so that we can act upon a user's
...
authentication immediately following a successful login.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@75 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-02 02:45:48 +00:00
mdb
8198fc6fb4
Was missing quotes around the expires date in the session insert SQL.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@74 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-02 02:38:31 +00:00
mdb
562c16d9ea
Formatting.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@73 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-02 02:35:17 +00:00
mdb
7a6111bb66
Was referencing the wrong array.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@72 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-02 02:34:37 +00:00
mdb
d33bd92c4d
Mo betta user management.
...
git-svn-id: https://samskivert.googlecode.com/svn/trunk@71 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-02 02:08:50 +00:00
mdb
998f929340
Added hexlate() a function that takes an array of bytes and returns a
...
string that is the hex encoding of said bytes.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@70 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-02 01:49:48 +00:00
mdb
de085d0781
Created some SQL that creates the necessary user management tables in
...
MySQL syntax.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@69 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-03-02 01:22:46 +00:00