org.mortbay.jetty.servlet
Class HashSessionManager.Session
java.lang.Object
org.mortbay.jetty.servlet.AbstractSessionManager.Session
org.mortbay.jetty.servlet.HashSessionManager.Session
- All Implemented Interfaces:
- java.io.Serializable, HttpSession, AbstractSessionManager.SessionIf
- Enclosing class:
- HashSessionManager
protected class HashSessionManager.Session
- extends AbstractSessionManager.Session
- See Also:
- Serialized Form
Fields inherited from class org.mortbay.jetty.servlet.AbstractSessionManager.Session |
_accessed, _clusterId, _cookieSet, _created, _doInvalidate, _idChanged, _invalid, _lastAccessed, _maxIdleMs, _newSession, _nodeId, _requests, _values |
Method Summary |
void |
invalidate()
Invalidates this session then unbinds any objects bound
to it. |
protected java.util.Map |
newAttributeMap()
|
void |
remove(java.lang.String id)
|
void |
save(java.io.FileOutputStream fos)
|
void |
setMaxInactiveInterval(int secs)
Specifies the time, in seconds, between client requests before the
servlet container will invalidate this session. |
Methods inherited from class org.mortbay.jetty.servlet.AbstractSessionManager.Session |
access, bindValue, complete, cookieSet, didActivate, doInvalidate, getAttribute, getAttributeNames, getClusterId, getCookieSetTime, getCreationTime, getId, getLastAccessedTime, getMaxInactiveInterval, getNodeId, getServletContext, getSession, getSessionContext, getValue, getValueNames, initValues, isIdChanged, isNew, isValid, putValue, removeAttribute, removeValue, setAttribute, setIdChanged, timeout, toString, unbindValue, willPassivate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
HashSessionManager.Session
protected HashSessionManager.Session(HttpServletRequest request)
HashSessionManager.Session
protected HashSessionManager.Session(long created,
java.lang.String clusterId)
setMaxInactiveInterval
public void setMaxInactiveInterval(int secs)
- Description copied from interface:
HttpSession
- Specifies the time, in seconds, between client requests before the
servlet container will invalidate this session. A negative time
indicates the session should never timeout.
- Specified by:
setMaxInactiveInterval
in interface HttpSession
- Overrides:
setMaxInactiveInterval
in class AbstractSessionManager.Session
- Parameters:
secs
- An integer specifying the number
of seconds
newAttributeMap
protected java.util.Map newAttributeMap()
- Specified by:
newAttributeMap
in class AbstractSessionManager.Session
invalidate
public void invalidate()
throws java.lang.IllegalStateException
- Description copied from interface:
HttpSession
- Invalidates this session then unbinds any objects bound
to it.
- Specified by:
invalidate
in interface HttpSession
- Overrides:
invalidate
in class AbstractSessionManager.Session
- Throws:
java.lang.IllegalStateException
- if this method is called on an
already invalidated session
remove
public void remove(java.lang.String id)
save
public void save(java.io.FileOutputStream fos)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 1995-2009 Mort Bay Consulting. All Rights Reserved.