Method Summary |
|
boolean | addUse() Set true if the session is in use. |
public boolean | canLog() |
void | create(long now) Creates a new session. |
protected Map<String, Object> | createValueMap() Create the map used to store values. |
void | endUse() Set true if the session is in use. |
public void | finish() Cleaning up session stuff at the end of a request.
If the session data has changed and we have persistent sessions,
save the session. |
public Object | getAttribute(String name) Returns the named attribute from the session. |
public Enumeration | getAttributeNames() Return an enumeration of all the sessions' attribute names. |
public ServletAuthenticator | getAuthenticator() |
public long | getCreationTime() Returns the time the session was created. |
Set | getEntrySet() |
public String | getId() Returns the session identifier. |
public long | getLastAccessedTime() Returns the last access time. |
public SessionManager | getManager() Returns the session manager. |
public int | getMaxInactiveInterval() Returns the time the session is allowed to be alive. |
public ServletContext | getServletContext() Returns the servlet context. |
public HttpSessionContext | getSessionContext() Returns the session context. |
int | getSrunIndex() Returns the index of the owning srun for distributed sessions. |
public Principal | getUser() |
public Object | getValue(String name) |
public String[] | getValueNames() |
public boolean | inUse() Returns true if the session is in use. |
public void | invalidate() Invalidates the session, called by user code. |
public void | invalidateLogout() Invalidates a session based on a logout. |
void | invalidateLru() |
void | invalidateTimeout() |
boolean | isClosing() |
public boolean | isEmpty() Returns true if the session is empty. |
public boolean | isNew() Returns true if the session is new. |
public boolean | isValid() Returns true if the session is valid. |
public boolean | load() Loads the session. |
public void | load(Hessian2Input in) Loads the object from the input stream. |
public void | load(ObjectInput in) Loads the object from the input stream. |
public void | log(String value) |
public void | logout() |
public void | logout(SessionImpl timeoutSession) |
public void | passivate() Passivates the session. |
public void | putValue(String name, Object value) |
public void | removeAttribute(String name) Remove a session attribute. |
public void | removeEvent() Callback when the session is removed from the session cache, generally
because the session cache is full. |
public void | removeValue(String name) |
void | reset(long now) Clears the session when reading a bad saved session. |
final public void | save() Saves changes to the session. |
final public void | saveAfterRequest() Flush changes after a request completes. |
final public void | saveBeforeFlush() Save changes before any flush. |
final public void | saveBeforeHeaders() Flush changes before the headers. |
void | saveOnShutdown() Store on shutdown. |
void | setAccess(long now) |
public void | setAttribute(String name, Object value) Sets a session attribute. |
void | setClusterObject(ClusterObject clusterObject) Sets the cluster object. |
public void | setMaxInactiveInterval(int value) Sets the maximum time a session is allowed to be alive. |
public void | setUser(Principal user) |
void | setValid(boolean isValid) Set the session valid or invalid. |
public void | store(Hessian2Output out) Saves the object to the input stream. |
public void | store(ObjectOutput out) Saves the object to the input stream. |
public String | toString() |
public void | unbind() Cleans up the session. |