public class SessionHandler extends ScopedHandler
AbstractLifeCycle.AbstractLifeCycleListener
LifeCycle.Listener
Modifier and Type | Field and Description |
---|---|
static EnumSet<javax.servlet.SessionTrackingMode> |
DEFAULT_TRACKING |
_nextScope, _outerScope
_handler
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
Constructor and Description |
---|
SessionHandler()
Constructor.
|
SessionHandler(SessionManager manager) |
Modifier and Type | Method and Description |
---|---|
void |
addEventListener(EventListener listener) |
protected void |
checkRequestedSessionId(Request baseRequest,
javax.servlet.http.HttpServletRequest request)
Look for a requested session ID in cookies and URI parameters
|
void |
clearEventListeners() |
void |
doHandle(String target,
Request baseRequest,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
doScope(String target,
Request baseRequest,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
protected void |
doStart() |
protected void |
doStop() |
SessionManager |
getSessionManager() |
void |
setServer(Server server) |
void |
setSessionManager(SessionManager sessionManager) |
handle, never, nextHandle, nextScope
destroy, expandChildren, getHandler, getHandlers, getNestedHandlerByClass, setHandler
dump, expandHandler, findContainerOf, getChildHandlerByClass, getChildHandlers, getChildHandlersByClass
dumpThis, getServer
addBean, addBean, contains, dump, dump, dump, dump, dumpObject, dumpStdErr, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, unmanage
addLifeCycleListener, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
public static final EnumSet<javax.servlet.SessionTrackingMode> DEFAULT_TRACKING
public SessionHandler()
public SessionHandler(SessionManager manager)
manager
- The session managerpublic SessionManager getSessionManager()
public void setSessionManager(SessionManager sessionManager)
sessionManager
- The sessionManager to set.public void setServer(Server server)
setServer
in interface Handler
setServer
in class HandlerWrapper
protected void doStart() throws Exception
doStart
in class ScopedHandler
Exception
HandlerWrapper.doStart()
protected void doStop() throws Exception
doStop
in class HandlerWrapper
Exception
public void doScope(String target, Request baseRequest, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
doScope
in class ScopedHandler
IOException
javax.servlet.ServletException
public void doHandle(String target, Request baseRequest, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
doHandle
in class ScopedHandler
IOException
javax.servlet.ServletException
protected void checkRequestedSessionId(Request baseRequest, javax.servlet.http.HttpServletRequest request)
baseRequest
- request
- public void addEventListener(EventListener listener)
listener
- public void clearEventListeners()
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.