javax.servlet.http.HttpSession, AbstractSessionManager.SessionIfpublic class JDBCSessionManager.Session extends MemSession
| Modifier and Type | Field | Description |
|---|---|---|
protected java.lang.String |
_canonicalContext |
Mangled context name (used to help distinguish 2 sessions with same id on different contexts)
|
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 java.lang.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 java.lang.String |
_rowId |
Unique row in db for session
|
protected java.lang.String |
_virtualHost |
Virtual host for context (used to help distinguish 2 sessions with same id on different contexts)
|
SESSION_CREATED_SECURE| Modifier | Constructor | Description |
|---|---|---|
protected |
Session(java.lang.String sessionId,
java.lang.String rowId,
long created,
long accessed,
long maxInterval) |
Session restored from database
|
protected |
Session(javax.servlet.http.HttpServletRequest request) |
Session from a request.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected boolean |
access(long time) |
Entry to session.
|
protected void |
complete() |
Exit from session
|
java.lang.String |
getCanonicalContext() |
|
long |
getExpiryTime() |
|
java.lang.String |
getLastNode() |
|
long |
getLastSaved() |
|
protected java.lang.String |
getRowId() |
|
java.lang.String |
getVirtualHost() |
|
void |
removeAttribute(java.lang.String name) |
|
protected void |
save() |
|
protected void |
save(boolean reactivate) |
|
void |
setAttribute(java.lang.String name,
java.lang.Object value) |
|
void |
setCanonicalContext(java.lang.String str) |
|
void |
setExpiryTime(long time) |
|
void |
setLastNode(java.lang.String node) |
|
void |
setLastSaved(long time) |
|
void |
setMaxInactiveInterval(int secs) |
Change the max idle time for this session.
|
protected void |
setRowId(java.lang.String rowId) |
|
void |
setVirtualHost(java.lang.String vhost) |
|
protected void |
timeout() |
|
java.lang.String |
toString() |
bindValue, callSessionAttributeListeners, changeAttribute, checkExpiry, checkValid, cookieSet, 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, setCookieSetTime, setIdChanged, setLastAccessedTime, setNodeId, setRequests, unbindValue, updateAttribute, willPassivateaddAttributes, clearAttributes, doGet, doGetAttributeNames, doPutOrRemove, getAttributeMap, getAttributes, getNamesprotected boolean _dirty
protected long _expiryTime
protected long _lastSaved
protected java.lang.String _lastNode
protected java.lang.String _virtualHost
protected java.lang.String _rowId
protected java.lang.String _canonicalContext
protected Session(javax.servlet.http.HttpServletRequest request)
request - the requestprotected Session(java.lang.String sessionId,
java.lang.String rowId,
long created,
long accessed,
long maxInterval)
sessionId - the session idrowId - the row idcreated - the created timestampaccessed - the access timestampmaxInterval - the max inactive interval (in seconds)protected java.lang.String getRowId()
protected void setRowId(java.lang.String rowId)
public void setVirtualHost(java.lang.String vhost)
public java.lang.String getVirtualHost()
public long getLastSaved()
public void setLastSaved(long time)
public void setExpiryTime(long time)
public long getExpiryTime()
public void setCanonicalContext(java.lang.String str)
public java.lang.String getCanonicalContext()
public void setLastNode(java.lang.String node)
public java.lang.String getLastNode()
public void setAttribute(java.lang.String name,
java.lang.Object value)
setAttribute in interface javax.servlet.http.HttpSessionsetAttribute in class AbstractSessionpublic void removeAttribute(java.lang.String name)
removeAttribute in interface javax.servlet.http.HttpSessionremoveAttribute in class AbstractSessionprotected boolean access(long time)
access in class AbstractSessionAbstractSession.access(long)public void setMaxInactiveInterval(int secs)
setMaxInactiveInterval in interface javax.servlet.http.HttpSessionsetMaxInactiveInterval in class AbstractSessionAbstractSession.setMaxInactiveInterval(int)protected void complete()
complete in class AbstractSessionAbstractSession.complete()protected void save()
throws java.lang.Exception
java.lang.Exceptionprotected void save(boolean reactivate)
throws java.lang.Exception
java.lang.Exceptionprotected void timeout()
throws java.lang.IllegalStateException
timeout in class AbstractSessionjava.lang.IllegalStateExceptionpublic java.lang.String toString()
toString in class AbstractSessionCopyright © 1995–2018 Webtide. All rights reserved.