|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jetty.server.session.AbstractSessionManager.Session
org.eclipse.jetty.server.session.JDBCSessionManager.Session
public class JDBCSessionManager.Session
Session Session instance in memory of this node.
Field Summary |
---|
Fields inherited from class org.eclipse.jetty.server.session.AbstractSessionManager.Session |
---|
_accessed, _attributes, _clusterId, _cookieSet, _created, _doInvalidate, _idChanged, _invalid, _lastAccessed, _maxIdleMs, _newSession, _nodeId, _requests |
Constructor Summary | |
---|---|
protected |
JDBCSessionManager.Session(HttpServletRequest request)
Session from a request. |
protected |
JDBCSessionManager.Session(long accessed,
JDBCSessionManager.SessionData data)
Session restored in database. |
Method Summary | |
---|---|
protected void |
access(long time)
Entry to session. |
protected void |
complete()
Exit from session |
protected void |
cookieSet()
|
void |
removeAttribute(String name)
Removes the object bound with the specified name from this session. |
void |
setAttribute(String name,
Object value)
Binds an object to this session, using the name specified. |
protected void |
timeout()
|
Methods inherited from class org.eclipse.jetty.server.session.AbstractSessionManager.Session |
---|
bindValue, didActivate, doInvalidate, getAttribute, getAttributeNames, getClusterId, getCookieSetTime, getCreationTime, getId, getLastAccessedTime, getMaxInactiveInterval, getNodeId, getServletContext, getSession, getSessionContext, getValue, getValueNames, invalidate, isIdChanged, isNew, isNotAvailable, isValid, putValue, removeValue, setIdChanged, setMaxInactiveInterval, toString, unbindValue, willPassivate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected JDBCSessionManager.Session(HttpServletRequest request)
request
- protected JDBCSessionManager.Session(long accessed, JDBCSessionManager.SessionData data)
data
- Method Detail |
---|
public void setAttribute(String name, Object value)
HttpSession
After this method executes, and if the new object
implements HttpSessionBindingListener
,
the container calls
HttpSessionBindingListener.valueBound
. The container then
notifies any HttpSessionAttributeListener
s in the web
application.
If an object was already bound to this session of this name
that implements HttpSessionBindingListener
, its
HttpSessionBindingListener.valueUnbound
method is called.
If the value passed in is null, this has the same effect as calling
removeAttribute()
.
setAttribute
in interface HttpSession
setAttribute
in class AbstractSessionManager.Session
name
- the name to which the object is bound;
cannot be nullvalue
- the object to be bound
public void removeAttribute(String name)
HttpSession
After this method executes, and if the object
implements HttpSessionBindingListener
,
the container calls
HttpSessionBindingListener.valueUnbound
. The container
then notifies any HttpSessionAttributeListener
s in the web
application.
removeAttribute
in interface HttpSession
removeAttribute
in class AbstractSessionManager.Session
name
- the name of the object to
remove from this sessionprotected void cookieSet()
cookieSet
in class AbstractSessionManager.Session
protected void access(long time)
access
in class AbstractSessionManager.Session
AbstractSessionManager.Session.access(long)
protected void complete()
complete
in class AbstractSessionManager.Session
AbstractSessionManager.Session.complete()
protected void timeout() throws IllegalStateException
timeout
in class AbstractSessionManager.Session
IllegalStateException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |