public class HTTPSessionManager
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static org.apache.log4j.Logger |
log
Used for logging.
|
| Constructor and Description |
|---|
HTTPSessionManager() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addHTTPSession(HTTPSession httpSession)
Adds an
HTTPSession to the hash. |
static HTTPSession |
addNewHTTPSession(Folder folder)
Adds a new
HTTPSession to the hash. |
static void |
dumpToLog()
Dumps all HTTP sessions to the log.
|
static HTTPSession |
getHTTPSession(java.lang.String name)
Gets an
HTTPSession based on its name. |
static java.util.Iterator |
getHTTPSessionsIterator()
Gets an
Iterator over which the sessions can be
cycled. |
static int |
getNumHTTPSessionsWithName(java.lang.String name)
Gets the number of HTTP sessions with the given name.
|
static int |
getNumHTTPSesssions()
Returns the number of
HTTPSession objects. |
static int |
getSequenceForHTTPSession(HTTPSession session)
Gets the sequence for a session.
|
static void |
removeHTTPSession(HTTPSession httpSession)
Removes an
HTTPSession from the hash. |
static void |
save()
Saves all sessions.
|
public static java.util.Iterator getHTTPSessionsIterator()
Iterator over which the sessions can be
cycled.Iterator.public static int getNumHTTPSesssions()
HTTPSession objects.public static HTTPSession getHTTPSession(java.lang.String name)
HTTPSession based on its name.name - The name of the session to get.HTTPSession, if found.public static int getSequenceForHTTPSession(HTTPSession session)
session - The HTTPSession.public static int getNumHTTPSessionsWithName(java.lang.String name)
name - The name of the session.public static void addHTTPSession(HTTPSession httpSession)
HTTPSession to the hash.httpSession - An HTTPSession.public static HTTPSession addNewHTTPSession(Folder folder)
HTTPSession to the hash.folder - The folder that will contain the new proxy session.public static void removeHTTPSession(HTTPSession httpSession)
HTTPSession from the hash.httpSession - The HTTPSession to be removed.public static void save()
public static void dumpToLog()