public class JDBCSessionManager.Session extends MemSession
| Modifier and Type | Field and Description |
|---|---|
protected String |
_canonicalContext
Mangled context name (used to help distinguish 2 sessions with same id on different contexts)
|
protected long |
_cookieSet
Time in msec since the epoch that a session cookie was set for this session
|
protected boolean |
_dirty
If dirty, session needs to be (re)persisted
|
protected long |
_expiryTime
Time in msec since the epoch that the session will expire
|
protected String |
_lastNode
Unique identifier of the last node to host the session
|
protected long |
_lastSaved
Time in msec since the epoch that the session was last persisted
|
protected String |
_rowId
Unique row in db for session
|
protected String |
_virtualHost
Virtual host for context (used to help distinguish 2 sessions with same id on different contexts)
|
SESSION_KNOWN_ONLY_TO_AUTHENTICATED| Modifier | Constructor and Description |
|---|---|
protected |
JDBCSessionManager.Session(HttpServletRequest request)
Session from a request.
|
protected |
JDBCSessionManager.Session(String sessionId,
String rowId,
long created,
long accessed,
long maxInterval)
Session restored from database
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
access(long time)
Entry to session.
|
protected void |
complete()
Exit from session
|
protected void |
cookieSet() |
String |
getCanonicalContext() |
long |
getCookieSet() |
long |
getExpiryTime() |
String |
getLastNode() |
long |
getLastSaved() |
protected String |
getRowId() |
String |
getVirtualHost() |
void |
removeAttribute(String name) |
protected void |
save() |
protected void |
save(boolean reactivate) |
void |
setAttribute(String name,
Object value) |
void |
setCanonicalContext(String str) |
void |
setCookieSet(long ms) |
void |
setExpiryTime(long time) |
void |
setLastNode(String node) |
void |
setLastSaved(long time) |
void |
setMaxInactiveInterval(int secs)
Change the max idle time for this session.
|
protected void |
setRowId(String rowId) |
void |
setVirtualHost(String vhost) |
protected void |
timeout() |
String |
toString() |
addAttributes, clearAttributes, doGet, doGetAttributeNames, doPutOrRemove, getAttributeMap, getAttributes, getNamesbindValue, callSessionAttributeListeners, changeAttribute, checkExpiry, checkValid, didActivate, doInvalidate, getAccessed, getAttribute, getAttributeNames, getClusterId, getCookieSetTime, getCreationTime, getId, getLastAccessedTime, getMaxInactiveInterval, getNodeId, getRequests, getServletContext, getSession, getSessionContext, getSessionManager, getValue, getValueNames, invalidate, isIdChanged, isNew, isValid, putValue, removeValue, renewId, setClusterId, setIdChanged, setLastAccessedTime, setNodeId, setRequests, unbindValue, updateAttribute, willPassivateprotected boolean _dirty
protected long _cookieSet
protected long _expiryTime
protected long _lastSaved
protected String _lastNode
protected String _virtualHost
protected String _rowId
protected String _canonicalContext
protected JDBCSessionManager.Session(HttpServletRequest request)
request - protected String getRowId()
protected void setRowId(String rowId)
public void setVirtualHost(String vhost)
public String getVirtualHost()
public long getLastSaved()
public void setLastSaved(long time)
public void setExpiryTime(long time)
public long getExpiryTime()
public void setCanonicalContext(String str)
public String getCanonicalContext()
public void setCookieSet(long ms)
public long getCookieSet()
public void setLastNode(String node)
public String getLastNode()
public void setAttribute(String name, Object value)
setAttribute in interface HttpSessionsetAttribute in class AbstractSessionpublic void removeAttribute(String name)
removeAttribute in interface HttpSessionremoveAttribute in class AbstractSessionprotected void cookieSet()
cookieSet in class AbstractSessionprotected boolean access(long time)
access in class AbstractSessionAbstractSession.access(long)public void setMaxInactiveInterval(int secs)
setMaxInactiveInterval in interface HttpSessionsetMaxInactiveInterval in class AbstractSessionAbstractSession.setMaxInactiveInterval(int)protected void complete()
complete in class AbstractSessionAbstractSession.complete()protected void timeout()
throws IllegalStateException
timeout in class AbstractSessionIllegalStateExceptionpublic String toString()
toString in class AbstractSessionCopyright © 1995-2015 Webtide. All Rights Reserved.