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