public class JDBCSessionManager.Session extends AbstractSession
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() |
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, bindValue, checkValid, clearAttributes, didActivate, doGet, doInvalidate, doPutOrRemove, getAccessed, getAttribute, getAttributeMap, getAttributeNames, getAttributes, getClusterId, getCookieSetTime, getCreationTime, getId, getLastAccessedTime, getMaxInactiveInterval, getNames, getNodeId, getRequests, getServletContext, getSession, getSessionContext, getSessionManager, getValue, getValueNames, invalidate, isIdChanged, isNew, isValid, putValue, removeValue, renewId, setClusterId, setIdChanged, setLastAccessedTime, setNodeId, setRequests, unbindValue, updateAttribute, willPassivate
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 HttpSession
setAttribute
in class AbstractSession
public void removeAttribute(String name)
removeAttribute
in interface HttpSession
removeAttribute
in class AbstractSession
protected void cookieSet()
cookieSet
in class AbstractSession
protected boolean access(long time)
access
in class AbstractSession
AbstractSession.access(long)
public void setMaxInactiveInterval(int secs)
setMaxInactiveInterval
in interface HttpSession
setMaxInactiveInterval
in class AbstractSession
AbstractSession.setMaxInactiveInterval(int)
protected void complete()
complete
in class AbstractSession
AbstractSession.complete()
protected void timeout() throws IllegalStateException
timeout
in class AbstractSession
IllegalStateException
public String toString()
toString
in class AbstractSession
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.