|
||||||||||
| 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
public abstract class AbstractSessionManager.Session
Implements HttpSession from the javax.servlet package.
| Field Summary | |
|---|---|
protected long |
_accessed
|
protected Map<String,Object> |
_attributes
|
protected String |
_clusterId
|
protected long |
_cookieSet
|
protected long |
_created
|
protected boolean |
_doInvalidate
|
protected boolean |
_idChanged
|
protected boolean |
_invalid
|
protected long |
_lastAccessed
|
protected long |
_maxIdleMs
|
protected boolean |
_newSession
|
protected String |
_nodeId
|
protected int |
_requests
|
| Constructor Summary | |
|---|---|
protected |
AbstractSessionManager.Session(javax.servlet.http.HttpServletRequest request)
|
protected |
AbstractSessionManager.Session(long created,
long accessed,
String clusterId)
|
| Method Summary | |
|---|---|
protected void |
access(long time)
|
protected void |
bindValue(String name,
Object value)
If value implements HttpSessionBindingListener, call valueBound() |
protected void |
clearAttributes()
|
protected void |
complete()
|
protected void |
cookieSet()
|
protected void |
didActivate()
|
protected void |
doInvalidate()
|
Object |
getAttribute(String name)
|
Enumeration |
getAttributeNames()
|
protected String |
getClusterId()
|
long |
getCookieSetTime()
|
long |
getCreationTime()
|
String |
getId()
|
long |
getLastAccessedTime()
|
int |
getMaxInactiveInterval()
|
protected String |
getNodeId()
|
javax.servlet.ServletContext |
getServletContext()
|
AbstractSessionManager.Session |
getSession()
|
javax.servlet.http.HttpSessionContext |
getSessionContext()
Deprecated. |
Object |
getValue(String name)
Deprecated. As of Version 2.2, this method is replaced by getAttribute(java.lang.String) |
String[] |
getValueNames()
Deprecated. As of Version 2.2, this method is replaced by getAttributeNames() |
void |
invalidate()
|
boolean |
isIdChanged()
|
boolean |
isNew()
|
protected boolean |
isNotAvailable()
|
protected boolean |
isValid()
|
void |
putValue(String name,
Object value)
Deprecated. As of Version 2.2, this method is replaced by setAttribute(java.lang.String, java.lang.Object) |
void |
removeAttribute(String name)
|
void |
removeValue(String name)
Deprecated. As of Version 2.2, this method is replaced by removeAttribute(java.lang.String) |
void |
setAttribute(String name,
Object value)
|
void |
setIdChanged(boolean changed)
|
void |
setMaxInactiveInterval(int secs)
|
protected void |
timeout()
|
String |
toString()
|
protected void |
unbindValue(String name,
Object value)
If value implements HttpSessionBindingListener, call valueUnbound() |
protected void |
willPassivate()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final String _clusterId
protected final String _nodeId
protected final Map<String,Object> _attributes
protected boolean _idChanged
protected final long _created
protected long _cookieSet
protected long _accessed
protected long _lastAccessed
protected boolean _invalid
protected boolean _doInvalidate
protected long _maxIdleMs
protected boolean _newSession
protected int _requests
| Constructor Detail |
|---|
protected AbstractSessionManager.Session(javax.servlet.http.HttpServletRequest request)
protected AbstractSessionManager.Session(long created,
long accessed,
String clusterId)
| Method Detail |
|---|
protected boolean isNotAvailable()
public AbstractSessionManager.Session getSession()
getSession in interface AbstractSessionManager.SessionIfpublic Object getAttribute(String name)
getAttribute in interface javax.servlet.http.HttpSessionpublic Enumeration getAttributeNames()
getAttributeNames in interface javax.servlet.http.HttpSessionpublic long getCookieSetTime()
public long getCreationTime()
throws IllegalStateException
getCreationTime in interface javax.servlet.http.HttpSessionIllegalStateException
public String getId()
throws IllegalStateException
getId in interface javax.servlet.http.HttpSessionIllegalStateExceptionprotected String getNodeId()
protected String getClusterId()
public long getLastAccessedTime()
throws IllegalStateException
getLastAccessedTime in interface javax.servlet.http.HttpSessionIllegalStateExceptionpublic int getMaxInactiveInterval()
getMaxInactiveInterval in interface javax.servlet.http.HttpSessionpublic javax.servlet.ServletContext getServletContext()
getServletContext in interface javax.servlet.http.HttpSession
@Deprecated
public javax.servlet.http.HttpSessionContext getSessionContext()
throws IllegalStateException
getSessionContext in interface javax.servlet.http.HttpSessionIllegalStateException
@Deprecated
public Object getValue(String name)
throws IllegalStateException
getAttribute(java.lang.String)
getValue in interface javax.servlet.http.HttpSessionIllegalStateException
@Deprecated
public String[] getValueNames()
throws IllegalStateException
getAttributeNames()
getValueNames in interface javax.servlet.http.HttpSessionIllegalStateExceptionprotected void access(long time)
protected void complete()
protected void timeout()
throws IllegalStateException
IllegalStateException
public void invalidate()
throws IllegalStateException
invalidate in interface javax.servlet.http.HttpSessionIllegalStateException
protected void doInvalidate()
throws IllegalStateException
IllegalStateExceptionprotected void clearAttributes()
public boolean isIdChanged()
public boolean isNew()
throws IllegalStateException
isNew in interface javax.servlet.http.HttpSessionIllegalStateException
@Deprecated
public void putValue(String name,
Object value)
throws IllegalStateException
setAttribute(java.lang.String, java.lang.Object)
putValue in interface javax.servlet.http.HttpSessionIllegalStateExceptionpublic void removeAttribute(String name)
removeAttribute in interface javax.servlet.http.HttpSession
@Deprecated
public void removeValue(String name)
throws IllegalStateException
removeAttribute(java.lang.String)
removeValue in interface javax.servlet.http.HttpSessionIllegalStateException
public void setAttribute(String name,
Object value)
setAttribute in interface javax.servlet.http.HttpSessionpublic void setIdChanged(boolean changed)
public void setMaxInactiveInterval(int secs)
setMaxInactiveInterval in interface javax.servlet.http.HttpSessionpublic String toString()
toString in class Object
protected void bindValue(String name,
Object value)
protected boolean isValid()
protected void cookieSet()
protected void unbindValue(String name,
Object value)
protected void willPassivate()
protected void didActivate()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||