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.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 |
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.