org.eclipse.jetty.server.session
类 HashedSession

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

public class HashedSession
extends AbstractSession


构造方法摘要
protected HashedSession(HashSessionManager hashSessionManager, HttpServletRequest request)
           
protected HashedSession(HashSessionManager hashSessionManager, long created, long accessed, String clusterId)
           
 
方法摘要
protected  void checkValid()
          asserts that the session is valid
 void deIdle()
           
protected  void doInvalidate()
           
 void idle()
          Idle the session to reduce session memory footprint.
 boolean isIdled()
           
 boolean isSaveFailed()
           
 void save(OutputStream os)
           
 void saveFailed()
           
 void setMaxInactiveInterval(int secs)
          Specifies the time, in seconds, between client requests before the servlet container will invalidate this session.
 
从类 org.eclipse.jetty.server.session.AbstractSession 继承的方法
access, addAttributes, bindValue, clearAttributes, complete, cookieSet, didActivate, doGet, 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, removeAttribute, removeValue, setAttribute, setIdChanged, setLastAccessedTime, setRequests, timeout, toString, unbindValue, willPassivate
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

HashedSession

protected HashedSession(HashSessionManager hashSessionManager,
                        HttpServletRequest request)

HashedSession

protected HashedSession(HashSessionManager hashSessionManager,
                        long created,
                        long accessed,
                        String clusterId)
方法详细信息

checkValid

protected void checkValid()
从类 AbstractSession 复制的描述
asserts that the session is valid

覆盖:
AbstractSession 中的 checkValid

setMaxInactiveInterval

public void setMaxInactiveInterval(int secs)
从接口 HttpSession 复制的描述
Specifies the time, in seconds, between client requests before the servlet container will invalidate this session.

An interval value of zero or less indicates that the session should never timeout.

指定者:
接口 HttpSession 中的 setMaxInactiveInterval
覆盖:
AbstractSession 中的 setMaxInactiveInterval
参数:
secs - An integer specifying the number of seconds

doInvalidate

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

save

public void save(OutputStream os)
          throws IOException
抛出:
IOException

deIdle

public void deIdle()

idle

public void idle()
          throws Exception
Idle the session to reduce session memory footprint. The session is idled by persisting it, then clearing the session values attribute map and finally setting it to an idled state.

抛出:
Exception

isIdled

public boolean isIdled()

isSaveFailed

public boolean isSaveFailed()

saveFailed

public void saveFailed()


Copyright © 2013. All Rights Reserved.