org.eclipse.jetty.server.session
Class 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
- All Implemented Interfaces:
- Handler, HandlerContainer, Destroyable, Dumpable, LifeCycle
public class SessionHandler
- extends ScopedHandler
SessionHandler.
Methods inherited from class org.eclipse.jetty.util.component.AggregateLifeCycle |
addBean, dump, dump, dump, dump, dumpStdErr, getBean, getBeans, getBeans, removeBean, removeBeans |
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle |
addLifeCycleListener, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SessionHandler
public SessionHandler()
- Constructor.
Construct a SessionHandler witha a HashSessionManager with a standard
java.util.Random generator is created.
SessionHandler
public SessionHandler(SessionManager manager)
- Parameters:
manager
- The session manager
getSessionManager
public SessionManager getSessionManager()
- Returns:
- Returns the sessionManager.
setSessionManager
public void setSessionManager(SessionManager sessionManager)
- Parameters:
sessionManager
- The sessionManager to set.
setServer
public void setServer(Server server)
- Specified by:
setServer
in interface Handler
- Overrides:
setServer
in class HandlerWrapper
doStart
protected void doStart()
throws Exception
- Overrides:
doStart
in class ScopedHandler
- Throws:
Exception
- See Also:
HandlerWrapper.doStart()
doStop
protected void doStop()
throws Exception
- Overrides:
doStop
in class HandlerWrapper
- Throws:
Exception
doScope
public void doScope(String target,
Request baseRequest,
HttpServletRequest request,
HttpServletResponse response)
throws IOException,
ServletException
- Specified by:
doScope
in class ScopedHandler
- Throws:
IOException
ServletException
doHandle
public void doHandle(String target,
Request baseRequest,
HttpServletRequest request,
HttpServletResponse response)
throws IOException,
ServletException
- Specified by:
doHandle
in class ScopedHandler
- Throws:
IOException
ServletException
setRequestedId
protected void setRequestedId(Request baseRequest,
HttpServletRequest request)
- Look for a requested session ID in cookies and URI parameters
- Parameters:
baseRequest
- request
-
addEventListener
public void addEventListener(EventListener listener)
- Parameters:
listener
-
clearEventListeners
public void clearEventListeners()
Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.