org.mortbay.cometd.session
Class BayeuxSessionManager.BayeuxSession
java.lang.Object
org.mortbay.jetty.servlet.AbstractSessionManager.Session
org.mortbay.jetty.servlet.HashSessionManager.Session
org.mortbay.cometd.session.BayeuxSessionManager.BayeuxSession
- All Implemented Interfaces:
- Serializable, HttpSession, AbstractSessionManager.SessionIf
- Enclosing class:
- BayeuxSessionManager
protected class BayeuxSessionManager.BayeuxSession
- extends HashSessionManager.Session
- See Also:
- Serialized Form
Fields inherited from class org.mortbay.jetty.servlet.AbstractSessionManager.Session |
_accessed, _clusterId, _cookieSet, _created, _doInvalidate, _idChanged, _invalid, _lastAccessed, _maxIdleMs, _newSession, _nodeId, _requests, _values |
Method Summary |
protected void |
access(long time)
|
protected void |
complete()
|
void |
invalidate()
Invalidates this session then unbinds any objects bound
to it. |
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. |
void |
setClient(dojox.cometd.Client client)
|
Methods inherited from class org.mortbay.jetty.servlet.AbstractSessionManager.Session |
bindValue, cookieSet, didActivate, doInvalidate, getAttribute, getAttributeNames, getClusterId, getCookieSetTime, getCreationTime, getId, getLastAccessedTime, getMaxInactiveInterval, getNodeId, getServletContext, getSession, getSessionContext, getValue, getValueNames, initValues, isIdChanged, isNew, isValid, putValue, removeValue, setIdChanged, timeout, toString, unbindValue, willPassivate |
BayeuxSessionManager.BayeuxSession
protected BayeuxSessionManager.BayeuxSession(HttpServletRequest request)
BayeuxSessionManager.BayeuxSession
public BayeuxSessionManager.BayeuxSession(long created,
String clusterId)
setClient
public void setClient(dojox.cometd.Client client)
access
protected void access(long time)
- Overrides:
access
in class AbstractSessionManager.Session
invalidate
public void invalidate()
throws IllegalStateException
- Description copied from interface:
javax.servlet.http.HttpSession
- Invalidates this session then unbinds any objects bound
to it.
- Specified by:
invalidate
in interface HttpSession
- Overrides:
invalidate
in class HashSessionManager.Session
- Throws:
IllegalStateException
- if this method is called on an
already invalidated session
removeAttribute
public void removeAttribute(String name)
- Description copied from interface:
javax.servlet.http.HttpSession
- Removes the object bound with the specified name from
this session. If the session does not have an object
bound with the specified name, this method does nothing.
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.
- Specified by:
removeAttribute
in interface HttpSession
- Overrides:
removeAttribute
in class AbstractSessionManager.Session
- Parameters:
name
- the name of the object to
remove from this session
setAttribute
public void setAttribute(String name,
Object value)
- Description copied from interface:
javax.servlet.http.HttpSession
- Binds an object to this session, using the name specified.
If an object of the same name is already bound to the session,
the object is replaced.
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().
- Specified by:
setAttribute
in interface HttpSession
- Overrides:
setAttribute
in class AbstractSessionManager.Session
- Parameters:
name
- the name to which the object is bound;
cannot be nullvalue
- the object to be bound
complete
protected void complete()
- Overrides:
complete
in class AbstractSessionManager.Session
Copyright © 2008 Mort Bay Consulting. All Rights Reserved.