| java.lang.Object java.util.Hashtable sun.net.www.http.KeepAliveCache
KeepAliveCache | public class KeepAliveCache extends Hashtable implements Runnable(Code) | | A class that implements a cache of idle Http connections for keep-alive
version: 1.28 10/10/06 author: Stephen R. Pietrowicz (NCSA) author: Dave Brown |
LIFETIME | final static int LIFETIME(Code) | | |
MAX_CONNECTIONS | final static int MAX_CONNECTIONS(Code) | | |
KeepAliveCache | public KeepAliveCache()(Code) | | Constructor
|
get | public synchronized Object get(URL url, Object obj)(Code) | | Check to see if this URL has a cached HttpClient
|
getMaxConnections | static int getMaxConnections()(Code) | | |
put | public synchronized void put(URL url, Object obj, HttpClient http)(Code) | | Register this URL and HttpClient (that supports keep-alive) with the cache
Parameters: url - The URL contains info about the host and port Parameters: http - The HttpClient to be cached |
removeVector | synchronized void removeVector(KeepAliveKey k)(Code) | | |
|
|