Method Summary |
|
public void | addActivationListener(HttpSessionActivationListener listener) Adds a new HttpSessionActivationListener. |
public void | addAttributeListener(HttpSessionAttributeListener listener) Adds a new HttpSessionAttributeListener. |
public void | addListener(HttpSessionListener listener) Adds a new HttpSessionListener. |
void | addSession(SessionImpl session) Adds a session from the cache. |
public void | close() Cleans up the sessions when the WebApp shuts down gracefully. |
public boolean | containsSession(String id) Returns true if the session exists in this manager. |
public StoreManager | createFileStore() Sets the file store. |
public StoreManager | createJdbcStore() Sets the jdbc store. |
public SessionImpl | createSession(String oldId, long now, HttpServletRequest request, boolean fromCookie) Create a new session.
Parameters: oldId - the id passed to the request. |
public String | createSessionId(HttpServletRequest request) Creates a pseudo-random session id. |
public String | createSessionId(HttpServletRequest request, boolean create) Creates a pseudo-random session id. |
public String | createSessionIdImpl(HttpServletRequest request) |
public static int | decode(int code) |
public boolean | enableSessionCookies() Returns true if sessions use the cookie header. |
public boolean | enableSessionUrls() Returns true if sessions can use the session rewriting. |
ArrayList<HttpSessionActivationListener> | getActivationListeners() Returns the activation listeners. |
public int | getActiveSessionCount() Returns the current number of active sessions. |
public SessionManagerMXBean | getAdmin() Returns the admin. |
public String | getAlternateSessionPrefix() Returns the alternate session prefix, before the URL for wap. |
boolean | getAlwaysLoadSession() True if sessions should always be loadd. |
boolean | getAlwaysSaveSession() True if sessions should always be saved. |
ArrayList<HttpSessionAttributeListener> | getAttributeListeners() Gets the HttpSessionAttributeListener. |
ServletAuthenticator | getAuthenticator() |
protected Cluster | getCluster() Gets the cluster. |
public String | getCookieDomain() Returns the default session cookie domain. |
public long | getCookieLength() Returns the cookie length. |
public long | getCookieMaxAge() Returns the max-age of the session cookie. |
public String | getCookieName() Returns the default cookie name. |
public String | getCookiePort() Gets the cookie ports. |
public boolean | getCookieSecure() Returns the secure of the session cookie. |
public int | getCookieVersion() Returns the cookie version. |
public Logger | getDebug() |
public String | getDistributionId() |
boolean | getIgnoreSerializationErrors() True if serialization errors should just fail silently. |
ArrayList<HttpSessionListener> | getListeners() Adds a new HttpSessionListener. |
public long | getMaxIdleTime() Returns the idle time. |
public int | getReuseSessionId() True if the server should reuse the current session id if the
session doesn't exist. |
public String | getSSLCookieName() Returns the SSL cookie name. |
public String | getSaveMode() Returns the string value of the save-mode. |
ClusterServer | getServer(int index) Returns the owning server. |
public SessionImpl | getSession(String key, long now, boolean create, boolean fromCookie) Returns a session from the session store, returning null if there's
no cached session. |
public int | getSessionActiveCount() Returns the active sessions. |
public long | getSessionCreateCount() Returns the created sessions. |
public long | getSessionInvalidateCount() Returns the invalidate sessions. |
public int | getSessionMax() Returns the maximum number of sessions. |
public String | getSessionPrefix() Returns the session prefix, ie.. |
public Store | getSessionStore() Returns the session store. |
public long | getSessionTimeout() Returns the default session timeout in milliseconds. |
public long | getSessionTimeoutCount() Returns the timeout sessions. |
public int | getSrunIndex() Returns the index of this JVM in the ring. |
public int | getSrunLength() |
WebApp | getWebApp() |
public void | handleAlarm(Alarm alarm) |
public void | init() |
public boolean | isClosed() Returns true if the sessions are closed. |
public boolean | isCookieAppendServerIndex() Sets module session id generation. |
public boolean | isCookieHttpOnly() Returns the http-only of the session cookie. |
public boolean | isEmpty(Object obj) Checks if the session is empty. |
public boolean | isHessianSerialization() Returns true for Hessian serialization. |
public boolean | isInSessionGroup(String id) |
public boolean | isInvalidateAfterListener() True if the session should be invalidated after the listener. |
public boolean | isSaveAfterRequest() True if sessions should be saved after the request. |
public boolean | isSaveBeforeFlush() True if sessions should be saved before each flush. |
public boolean | isSaveBeforeHeaders() True if sessions should be saved before the HTTP headers. |
public boolean | isSaveOnShutdown() True if sessions should be saved on shutdown. |
public boolean | isSaveOnlyOnShutdown() True if sessions should only be saved on shutdown. |
public void | load(InputStream is, Object obj) Loads the session. |
public void | notifyRemove(String id) Notification from the cluster. |
public void | notifyUpdate(String id) Notification from the cluster. |
void | removeSession(SessionImpl session) Removes a session from the cache. |
public boolean | reuseSessionId(boolean fromCookie) True if the server should reuse the current session id if the
session doesn't exist. |
public void | setAlwaysLoadSession(boolean load) True if sessions should always be loadd. |
public void | setAlwaysSaveSession(boolean save) True if sessions should always be saved. |
public void | setClusterStore(boolean isEnable) Sets the cluster store. |
public void | setCookieAppendServerIndex(boolean isAppend) Sets module session id generation. |
public void | setCookieDomain(String domain) Sets the default session cookie domain. |
public void | setCookieHttpOnly(boolean httpOnly) Sets the http-only of the session cookie. |
public void | setCookieLength(int cookieLength) |
public void | setCookieMaxAge(Period maxAge) Sets the max-age of the session cookie. |
public void | setCookieModuloCluster(boolean isModulo) Sets module session id generation. |
public void | setCookiePort(String port) Sets the cookie ports. |
public void | setCookieSecure(boolean secure) Sets the secure of the session cookie. |
public void | setCookieVersion(int cookieVersion) Sets the cookie version. |
public void | setDistributionId(String distributionId) |
public void | setEnableCookies(boolean enableCookies) Returns true if sessions use the cookie header. |
public void | setEnableUrlRewriting(boolean enableUrls) Returns true if sessions can use the session rewriting. |
public void | setIgnoreSerializationErrors(boolean ignore) True if serialization errors should just fail silently. |
public void | setInvalidateAfterListener(boolean inv) True if the session should be invalidated after the listener. |
public void | setPersistentPath(Path path) Returns the session factory. |
public void | setPersistentStore(JndiBuilder store) Sets the persistent store. |
public void | setReuseSessionId(String reuse) True if the server should reuse the current session id if the
session doesn't exist. |
public void | setSaveMode(String mode) |
public void | setSaveOnShutdown(boolean save) True if sessions should only be saved on shutdown. |
public void | setSaveOnlyOnShutdown(boolean save) True if sessions should only be saved on shutdown. |
public void | setSerializationType(String type) Sets the serialization type. |
public void | setSessionMax(int max) Returns the maximum number of sessions. |
public void | setSessionTimeout(long timeout) |
public void | setTcpStore(boolean isEnable) Sets the tcp store. |
public void | setUsePersistentStore(boolean enable) Sets the cluster store. |
public void | start() |
public void | store(OutputStream os, Object obj) Saves the session. |
public String | toString() |