org.eclipse.jetty.server.session
Class HashSessionManager.HashedSession
java.lang.Object
org.eclipse.jetty.server.session.AbstractSessionManager.Session
org.eclipse.jetty.server.session.HashSessionManager.HashedSession
- All Implemented Interfaces:
- Serializable, HttpSession, AbstractSessionManager.SessionIf
- Enclosing class:
- HashSessionManager
protected class HashSessionManager.HashedSession
- extends AbstractSessionManager.Session
- See Also:
- Serialized Form
Fields inherited from class org.eclipse.jetty.server.session.AbstractSessionManager.Session |
_accessed, _attributes, _clusterId, _cookieSet, _created, _doInvalidate, _idChanged, _invalid, _lastAccessed, _maxIdleMs, _newSession, _nodeId, _requests |
Methods inherited from class org.eclipse.jetty.server.session.AbstractSessionManager.Session |
access, bindValue, complete, cookieSet, didActivate, doInvalidate, getAttribute, getAttributeNames, getClusterId, getCookieSetTime, getCreationTime, getId, getLastAccessedTime, getMaxInactiveInterval, getNodeId, getServletContext, getSession, getSessionContext, getValue, getValueNames, isIdChanged, isNew, isValid, putValue, removeAttribute, removeValue, setAttribute, setIdChanged, timeout, toString, unbindValue, willPassivate |
HashSessionManager.HashedSession
protected HashSessionManager.HashedSession(HttpServletRequest request)
HashSessionManager.HashedSession
protected HashSessionManager.HashedSession(long created,
long accessed,
String clusterId)
isNotAvailable
protected boolean isNotAvailable()
- Overrides:
isNotAvailable
in class AbstractSessionManager.Session
- Returns:
- True is the session is invalid or passivated.
setMaxInactiveInterval
public void setMaxInactiveInterval(int secs)
- Specified by:
setMaxInactiveInterval
in interface HttpSession
- Overrides:
setMaxInactiveInterval
in class AbstractSessionManager.Session
invalidate
public void invalidate()
throws IllegalStateException
- Specified by:
invalidate
in interface HttpSession
- Overrides:
invalidate
in class AbstractSessionManager.Session
- Throws:
IllegalStateException
remove
public void remove()
save
public void save(OutputStream os)
throws IOException
- Throws:
IOException
deIdle
public void deIdle()
idle
public void idle()
- Idle the session to reduce session memory footprint.
The session is idled by persisting it, then clearing the session values attribute map and finally setting
it to an idled state.
isIdled
public boolean isIdled()
isSaveFailed
public boolean isSaveFailed()
saveFailed
public void saveFailed()
Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.