org.mortbay.jetty.servlet
public abstract class AbstractSessionManager.Session extends java.lang.Object implements AbstractSessionManager.SessionIf, java.io.Serializable
Implements HttpSession
from the javax.servlet
package.
Modifier and Type | Field and Description |
---|---|
protected long |
_accessed |
protected java.lang.String |
_clusterId |
protected long |
_cookieSet |
protected long |
_created |
protected boolean |
_doInvalidate |
protected boolean |
_idChanged |
protected boolean |
_invalid |
protected long |
_lastAccessed |
protected long |
_maxIdleMs |
protected boolean |
_newSession |
protected java.lang.String |
_nodeId |
protected int |
_requests |
protected java.util.Map |
_values |
Modifier | Constructor and Description |
---|---|
protected |
AbstractSessionManager.Session(HttpServletRequest request) |
protected |
AbstractSessionManager.Session(long created,
java.lang.String clusterId) |
Modifier and Type | Method and Description |
---|---|
protected void |
access(long time) |
protected void |
bindValue(java.lang.String name,
java.lang.Object value)
If value implements HttpSessionBindingListener, call valueBound()
|
protected void |
complete() |
protected void |
cookieSet() |
protected void |
didActivate() |
protected void |
doInvalidate() |
java.lang.Object |
getAttribute(java.lang.String name) |
java.util.Enumeration |
getAttributeNames() |
protected java.lang.String |
getClusterId() |
long |
getCookieSetTime() |
long |
getCreationTime() |
java.lang.String |
getId() |
long |
getLastAccessedTime() |
int |
getMaxInactiveInterval() |
protected java.lang.String |
getNodeId() |
ServletContext |
getServletContext() |
AbstractSessionManager.Session |
getSession() |
HttpSessionContext |
getSessionContext()
Deprecated.
|
java.lang.Object |
getValue(java.lang.String name)
Deprecated.
As of Version 2.2, this method is replaced by
getAttribute(java.lang.String) |
java.lang.String[] |
getValueNames()
Deprecated.
As of Version 2.2, this method is replaced by
getAttributeNames() |
protected void |
initValues() |
void |
invalidate() |
boolean |
isIdChanged() |
boolean |
isNew() |
protected boolean |
isValid() |
protected abstract java.util.Map |
newAttributeMap() |
void |
putValue(java.lang.String name,
java.lang.Object value)
Deprecated.
As of Version 2.2, this method is replaced by
setAttribute(java.lang.String, java.lang.Object) |
void |
removeAttribute(java.lang.String name) |
void |
removeValue(java.lang.String name)
Deprecated.
As of Version 2.2, this method is replaced by
removeAttribute(java.lang.String) |
void |
setAttribute(java.lang.String name,
java.lang.Object value) |
void |
setIdChanged(boolean changed) |
void |
setMaxInactiveInterval(int secs) |
protected void |
timeout() |
java.lang.String |
toString() |
protected void |
unbindValue(java.lang.String name,
java.lang.Object value)
If value implements HttpSessionBindingListener, call valueUnbound()
|
protected void |
willPassivate() |
protected final java.lang.String _clusterId
protected final java.lang.String _nodeId
protected boolean _idChanged
protected final long _created
protected long _cookieSet
protected long _accessed
protected long _lastAccessed
protected boolean _invalid
protected boolean _doInvalidate
protected long _maxIdleMs
protected boolean _newSession
protected java.util.Map _values
protected int _requests
protected AbstractSessionManager.Session(HttpServletRequest request)
protected AbstractSessionManager.Session(long created, java.lang.String clusterId)
public AbstractSessionManager.Session getSession()
getSession
in interface AbstractSessionManager.SessionIf
protected void initValues()
public java.lang.Object getAttribute(java.lang.String name)
getAttribute
in interface HttpSession
public java.util.Enumeration getAttributeNames()
getAttributeNames
in interface HttpSession
public long getCookieSetTime()
public long getCreationTime() throws java.lang.IllegalStateException
getCreationTime
in interface HttpSession
java.lang.IllegalStateException
public java.lang.String getId() throws java.lang.IllegalStateException
getId
in interface HttpSession
java.lang.IllegalStateException
protected java.lang.String getNodeId()
protected java.lang.String getClusterId()
public long getLastAccessedTime() throws java.lang.IllegalStateException
getLastAccessedTime
in interface HttpSession
java.lang.IllegalStateException
public int getMaxInactiveInterval()
getMaxInactiveInterval
in interface HttpSession
public ServletContext getServletContext()
getServletContext
in interface HttpSession
public HttpSessionContext getSessionContext() throws java.lang.IllegalStateException
getSessionContext
in interface HttpSession
java.lang.IllegalStateException
public java.lang.Object getValue(java.lang.String name) throws java.lang.IllegalStateException
getAttribute(java.lang.String)
getValue
in interface HttpSession
java.lang.IllegalStateException
public java.lang.String[] getValueNames() throws java.lang.IllegalStateException
getAttributeNames()
getValueNames
in interface HttpSession
java.lang.IllegalStateException
protected void access(long time)
protected void complete()
protected void timeout() throws java.lang.IllegalStateException
java.lang.IllegalStateException
public void invalidate() throws java.lang.IllegalStateException
invalidate
in interface HttpSession
java.lang.IllegalStateException
protected void doInvalidate() throws java.lang.IllegalStateException
java.lang.IllegalStateException
public boolean isIdChanged()
public boolean isNew() throws java.lang.IllegalStateException
isNew
in interface HttpSession
java.lang.IllegalStateException
public void putValue(java.lang.String name, java.lang.Object value) throws java.lang.IllegalStateException
setAttribute(java.lang.String, java.lang.Object)
putValue
in interface HttpSession
java.lang.IllegalStateException
public void removeAttribute(java.lang.String name)
removeAttribute
in interface HttpSession
public void removeValue(java.lang.String name) throws java.lang.IllegalStateException
removeAttribute(java.lang.String)
removeValue
in interface HttpSession
java.lang.IllegalStateException
public void setAttribute(java.lang.String name, java.lang.Object value)
setAttribute
in interface HttpSession
public void setIdChanged(boolean changed)
public void setMaxInactiveInterval(int secs)
setMaxInactiveInterval
in interface HttpSession
public java.lang.String toString()
toString
in class java.lang.Object
protected void bindValue(java.lang.String name, java.lang.Object value)
protected boolean isValid()
protected abstract java.util.Map newAttributeMap()
protected void cookieSet()
protected void unbindValue(java.lang.String name, java.lang.Object value)
protected void willPassivate()
protected void didActivate()
Copyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.