org.eclipse.jetty.server.session
类 SessionHandler

java.lang.Object
  继承者 org.eclipse.jetty.util.component.AbstractLifeCycle
      继承者 org.eclipse.jetty.util.component.AggregateLifeCycle
          继承者 org.eclipse.jetty.server.handler.AbstractHandler
              继承者 org.eclipse.jetty.server.handler.AbstractHandlerContainer
                  继承者 org.eclipse.jetty.server.handler.HandlerWrapper
                      继承者 org.eclipse.jetty.server.handler.ScopedHandler
                          继承者 org.eclipse.jetty.server.session.SessionHandler
所有已实现的接口:
Handler, HandlerContainer, Destroyable, Dumpable, LifeCycle

public class SessionHandler
extends ScopedHandler

SessionHandler.


嵌套类摘要
 
从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的嵌套类/接口
AbstractLifeCycle.AbstractLifeCycleListener
 
从接口 org.eclipse.jetty.util.component.LifeCycle 继承的嵌套类/接口
LifeCycle.Listener
 
字段摘要
static EnumSet<SessionTrackingMode> DEFAULT_TRACKING
           
 
从类 org.eclipse.jetty.server.handler.ScopedHandler 继承的字段
_nextScope, _outerScope
 
从类 org.eclipse.jetty.server.handler.HandlerWrapper 继承的字段
_handler
 
从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的字段
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
 
构造方法摘要
SessionHandler()
          Constructor.
SessionHandler(SessionManager manager)
           
 
方法摘要
 void addEventListener(EventListener listener)
           
protected  void checkRequestedSessionId(Request baseRequest, HttpServletRequest request)
          Look for a requested session ID in cookies and URI parameters
 void clearEventListeners()
           
 void doHandle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
           
 void doScope(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response)
           
protected  void doStart()
          Start the managed lifecycle beans in the order they were added.
protected  void doStop()
          Stop the joined lifecycle beans in the reverse order they were added.
 SessionManager getSessionManager()
           
 void setServer(Server server)
           
 void setSessionManager(SessionManager sessionManager)
           
 
从类 org.eclipse.jetty.server.handler.ScopedHandler 继承的方法
handle, never, nextHandle, nextScope
 
从类 org.eclipse.jetty.server.handler.HandlerWrapper 继承的方法
destroy, expandChildren, getHandler, getHandlers, getNestedHandlerByClass, setHandler
 
从类 org.eclipse.jetty.server.handler.AbstractHandlerContainer 继承的方法
dump, expandHandler, findContainerOf, getChildHandlerByClass, getChildHandlers, getChildHandlersByClass
 
从类 org.eclipse.jetty.server.handler.AbstractHandler 继承的方法
dumpThis, getServer
 
从类 org.eclipse.jetty.util.component.AggregateLifeCycle 继承的方法
addBean, addBean, contains, dump, dump, dump, dump, dumpObject, dumpStdErr, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, unmanage
 
从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的方法
addLifeCycleListener, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
从接口 org.eclipse.jetty.util.component.LifeCycle 继承的方法
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
 

字段详细信息

DEFAULT_TRACKING

public static final EnumSet<SessionTrackingMode> DEFAULT_TRACKING
构造方法详细信息

SessionHandler

public SessionHandler()
Constructor. Construct a SessionHandler witha a HashSessionManager with a standard java.util.Random generator is created.


SessionHandler

public SessionHandler(SessionManager manager)
参数:
manager - The session manager
方法详细信息

getSessionManager

public SessionManager getSessionManager()
返回:
Returns the sessionManager.

setSessionManager

public void setSessionManager(SessionManager sessionManager)
参数:
sessionManager - The sessionManager to set.

setServer

public void setServer(Server server)
指定者:
接口 Handler 中的 setServer
覆盖:
HandlerWrapper 中的 setServer

doStart

protected void doStart()
                throws Exception
从类 AggregateLifeCycle 复制的描述
Start the managed lifecycle beans in the order they were added.

覆盖:
ScopedHandler 中的 doStart
抛出:
Exception
另请参见:
HandlerWrapper.doStart()

doStop

protected void doStop()
               throws Exception
从类 AggregateLifeCycle 复制的描述
Stop the joined lifecycle beans in the reverse order they were added.

覆盖:
HandlerWrapper 中的 doStop
抛出:
Exception
另请参见:
AbstractLifeCycle.doStart()

doScope

public void doScope(String target,
                    Request baseRequest,
                    HttpServletRequest request,
                    HttpServletResponse response)
             throws IOException,
                    ServletException
指定者:
ScopedHandler 中的 doScope
抛出:
IOException
ServletException

doHandle

public void doHandle(String target,
                     Request baseRequest,
                     HttpServletRequest request,
                     HttpServletResponse response)
              throws IOException,
                     ServletException
指定者:
ScopedHandler 中的 doHandle
抛出:
IOException
ServletException

checkRequestedSessionId

protected void checkRequestedSessionId(Request baseRequest,
                                       HttpServletRequest request)
Look for a requested session ID in cookies and URI parameters

参数:
baseRequest -
request -

addEventListener

public void addEventListener(EventListener listener)
参数:
listener -

clearEventListeners

public void clearEventListeners()


Copyright © 2013. All Rights Reserved.