Commit Graph

125 Commits

Author SHA1 Message Date
shaper ce22aef1f8 Initial version of utility routines for adding menu items to menus in
a more concise fashion.  Strunk and White would be proud.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@207 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-07-24 20:11:19 +00:00
mdb a3107c9272 Added a version of toString() that can be passed an existing string
buffer.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@203 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-07-21 22:21:42 +00:00
mdb 469e2d169f Created a repository for collection related utility functions. Created
addAll() a function that adds all elements from an enumeration to a
collection. Created another version that works with an Iterator rather
than an Enumeration.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@202 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-07-21 22:05:04 +00:00
shaper fa41492090 Added instantiateValue() to facilitate instantiating a class via
Class.forName() where the class name is obtained from a config value.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@200 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-07-21 00:50:28 +00:00
shaper f59491ac03 Initial version.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@199 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-07-21 00:49:26 +00:00
mdb 9764ab554e Added JAXP dependency; modified format to be more explicity about which
samskivert services require which libraries.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@198 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-07-20 22:56:12 +00:00
shaper 019dc655a0 Initial version of utility class to facilitate XML parsing.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@197 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-07-20 22:56:00 +00:00
mdb 43e7ebcd4d Created a basic context that will serve as a base interface for the
variety of other contexts we're going to need for the Three Rings
game platform.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@196 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-07-20 19:46:56 +00:00
mdb 998ca7cf4f Recursively call toString() when toString()ing each Object in an Object
array.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@195 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-07-19 18:32:02 +00:00
mdb 40aac7bafa Log a notice when we catch a non-transient exception.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@194 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-07-19 01:04:50 +00:00
mdb 9e4758bb64 Created a class that provides standard comparators. Presently it has a
comparator that works on strings.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@183 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-07-13 23:41:06 +00:00
mdb 5c3b4383a0 Added split() for splitting a string up based on a separator character.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@171 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-07-12 23:29:16 +00:00
mdb dda6eae489 Added support for iterating over the configuration keys.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@166 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-07-12 18:13:19 +00:00
mdb 804f98de22 Created a configuration management object that provides access to typed
config values retrieved from properties files that live in the classpath.
Also modified build system to copy properties files from the classpath
into the target directory so that they are properly available.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@165 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-07-12 02:44:34 +00:00
mdb 0a54f5438b Added parseIntArray() and parseStringArray() for parsing arrays of ints
and strings respectively from a string representation.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@164 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-07-12 02:43:43 +00:00
mdb 21a1b4c2c5 Added means by which all users' real names can be loaded.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@162 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-07-08 19:34:39 +00:00
mdb d5612717a2 Throw EOFException if CDDB server closes their end of the connection
during a lookup.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@155 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-06-10 21:32:48 +00:00
mdb 920f114243 Whoops. Forgot an import.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@152 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-06-07 08:40:30 +00:00
mdb d1dee28125 Added support for off-axis justification.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@151 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-06-07 08:39:10 +00:00
mdb 4cd0102c69 Use JDBCUtil.close() rather than closing the statement directly because it
could conceivably be null.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@150 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-06-07 08:38:47 +00:00
mdb d827c97809 Added $Id$ for version visibility goodness.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@148 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-06-05 20:23:52 +00:00
mdb 8c2aa0ca11 Edits.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@147 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-06-05 20:19:42 +00:00
mdb 627a309482 Modified Repository.Operation.invoke() to return a value so that it can be
used easily for database lookups as well as database stores.

Modified UserRepository to conform to the new signature as well as to use
execute() for all database operations.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@137 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-06-01 07:27:59 +00:00
mdb 930fa64bab Removed exception map that turned out not to be valid.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@136 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-06-01 07:15:05 +00:00
mdb 57aa7bf3c3 Added another transient exception string to the list.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@135 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-30 17:02:52 +00:00
mdb 71a521fae7 Add recognition of another transient error type.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@134 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-30 03:18:32 +00:00
mdb 6ae4154689 Put didShutdown() in a finally block so that it is called even if
iterate() or willStart() throws some runtime exception.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@133 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-30 00:25:53 +00:00
mdb adcb322b83 Created a Tuple class for passing around pairs of objects.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@132 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-29 03:29:54 +00:00
mdb 15a78e501e Created a base class that handles basic stuff for threads that loop
repeatedly, processing events or somesuch.


git-svn-id: https://samskivert.googlecode.com/svn/trunk@131 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-29 03:29:44 +00:00
mdb 03c140cb38 Wasn't taking into account off-axis insets in certain cases.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@130 6335cc39-0255-0410-8fd6-9bcaacd3b74c
2001-05-28 18:26:27 +00:00
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