org.eclipse.jetty.server.session
类 JDBCSessionManager.Session

java.lang.Object
  继承者 org.eclipse.jetty.server.session.AbstractSession
      继承者 org.eclipse.jetty.server.session.JDBCSessionManager.Session
所有已实现的接口:
HttpSession, AbstractSessionManager.SessionIf
包容类:
JDBCSessionManager

public class JDBCSessionManager.Session
extends AbstractSession

Session Session instance.


构造方法摘要
protected JDBCSessionManager.Session(HttpServletRequest request)
          Session from a request.
protected JDBCSessionManager.Session(String sessionId, String rowId, long created, long accessed)
          Session restored from database
 
方法摘要
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)
          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 setCanonicalContext(String str)
           
 void setCookieSet(long ms)
           
 void setExpiryTime(long time)
           
 void setLastNode(String node)
           
 void setLastSaved(long time)
           
protected  void setRowId(String rowId)
           
 void setVirtualHost(String vhost)
           
protected  void timeout()
           
 String toString()
           
 
从类 org.eclipse.jetty.server.session.AbstractSession 继承的方法
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, getValue, getValueNames, invalidate, isIdChanged, isNew, isValid, putValue, removeValue, setIdChanged, setLastAccessedTime, setMaxInactiveInterval, setRequests, unbindValue, willPassivate
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

JDBCSessionManager.Session

protected JDBCSessionManager.Session(HttpServletRequest request)
Session from a request.

参数:
request -

JDBCSessionManager.Session

protected JDBCSessionManager.Session(String sessionId,
                                     String rowId,
                                     long created,
                                     long accessed)
Session restored from database

参数:
sessionId -
rowId -
created -
accessed -
方法详细信息

getRowId

protected String getRowId()

setRowId

protected void setRowId(String rowId)

setVirtualHost

public void setVirtualHost(String vhost)

getVirtualHost

public String getVirtualHost()

getLastSaved

public long getLastSaved()

setLastSaved

public void setLastSaved(long time)

setExpiryTime

public void setExpiryTime(long time)

getExpiryTime

public long getExpiryTime()

setCanonicalContext

public void setCanonicalContext(String str)

getCanonicalContext

public String getCanonicalContext()

setCookieSet

public void setCookieSet(long ms)

getCookieSet

public long getCookieSet()

setLastNode

public void setLastNode(String node)

getLastNode

public String getLastNode()

setAttribute

public void setAttribute(String name,
                         Object value)
从接口 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 HttpSessionAttributeListeners 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().

指定者:
接口 HttpSession 中的 setAttribute
覆盖:
AbstractSession 中的 setAttribute
参数:
name - the name to which the object is bound; cannot be null
value - the object to be bound

removeAttribute

public void removeAttribute(String name)
从接口 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 HttpSessionAttributeListeners in the web application.

指定者:
接口 HttpSession 中的 removeAttribute
覆盖:
AbstractSession 中的 removeAttribute
参数:
name - the name of the object to remove from this session

cookieSet

protected void cookieSet()
覆盖:
AbstractSession 中的 cookieSet

access

protected boolean access(long time)
Entry to session. Called by SessionHandler on inbound request and the session already exists in this node's memory.

覆盖:
AbstractSession 中的 access
另请参见:
AbstractSession.access(long)

complete

protected void complete()
Exit from session

覆盖:
AbstractSession 中的 complete
另请参见:
AbstractSession.complete()

timeout

protected void timeout()
                throws IllegalStateException
覆盖:
AbstractSession 中的 timeout
抛出:
IllegalStateException

toString

public String toString()
覆盖:
AbstractSession 中的 toString


Copyright © 2013. All Rights Reserved.