--- MultiThreadedHttpConnectionManager.java.orig 2004-11-20 23:23:54.000000000 +0100 +++ MultiThreadedHttpConnectionManager.java 2004-12-21 10:14:46.561757512 +0100 @@ -64,6 +64,7 @@ public class MultiThreadedHttpConnectionManager implements HttpConnectionManager { // -------------------------------------------------------- Class Variables + /** Log object for this class. */ private static final Log LOG = LogFactory.getLog(MultiThreadedHttpConnectionManager.class); @@ -95,10 +96,13 @@ */ private static WeakHashMap ALL_CONNECTION_MANAGERS = new WeakHashMap(); + + // ---------------------------------------------------------- Class Methods + /** * Shuts down and cleans up resources used by all instances of * MultiThreadedHttpConnectionManager. All static resources are released, all threads are - * stopped, and {@link #shutdown()} is called on all live instaces of + * stopped, and {@link #shutdown()} is called on all live instances of * MultiThreadedHttpConnectionManager. * * @see #shutdown() @@ -127,7 +131,7 @@ } /** - * Stores the reference to the given connection along with the hostConfig and connection pool. + * Stores the reference to the given connection along with the host config and connection pool. * These values will be used to reclaim resources if the connection is lost to the garbage * collector. This method should be called before a connection is released from the connection * manager. @@ -221,7 +225,9 @@ } } + // ----------------------------------------------------- Instance Variables + /** * Collection of parameters associated with this connection manager. */ @@ -232,6 +238,9 @@ private boolean shutdown = false; + + // ----------------------------------------------------------- Constructors + /** * No-args constructor */ @@ -242,6 +251,9 @@ } } + + // ------------------------------------------------------- Instance Methods + /** * Shuts down the connection manager and releases all resources. All connections associated * with this class will be closed and released. @@ -262,7 +274,7 @@ /** * Gets the staleCheckingEnabled value to be set on HttpConnections that are created. * - * @return true if stale checking will be enabled on HttpConections + * @return true if stale checking will be enabled on HttpConnections * * @see HttpConnection#isStaleCheckingEnabled() * @@ -277,7 +289,7 @@ * Sets the staleCheckingEnabled value to be set on HttpConnections that are created. * * @param connectionStaleCheckingEnabled true if stale checking will be enabled - * on HttpConections + * on HttpConnections * * @see HttpConnection#setStaleCheckingEnabled(boolean) * @@ -716,7 +728,7 @@ } /** - * Creates a new connection and returns is for use of the calling method. + * Creates a new connection and returns it for use of the calling method. * * @param hostConfiguration the configuration for the connection * @return a new connection or null if none are available @@ -903,8 +915,8 @@ /** * Notifies a waiting thread that a connection for the given configuration is - * available. This will wake a thread witing in tis hostPool or if there is not - * one a thread in the ConnectionPool will be notified. + * available. This will wake a thread waiting in this host pool or if there is not + * one a thread in the connection pool will be notified. * * @param hostPool the host pool to use for notifying */