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 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_CREATED_SECURE| Modifier | Constructor and Description |
|---|---|
protected |
Session(HttpServletRequest request)
Session from a request.
|
protected |
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
|
String |
getCanonicalContext() |
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 |
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, 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, willPassivateprotected boolean _dirty
protected long _expiryTime
protected long _lastSaved
protected String _lastNode
protected String _virtualHost
protected String _rowId
protected String _canonicalContext
protected Session(HttpServletRequest request)
request - the requestprotected Session(String sessionId, 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 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 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 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–2017 Webtide. All rights reserved.