public class SessionHandler extends ScopedHandler
AbstractLifeCycle.AbstractLifeCycleListener
LifeCycle.Listener
Container.InheritedListener, Container.Listener
Modifier and Type | Field and Description |
---|---|
static EnumSet<javax.servlet.SessionTrackingMode> |
DEFAULT_TRACKING |
_nextScope, _outerScope
_handler
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 |
removeEventListener(EventListener listener) |
void |
setSessionManager(SessionManager sessionManager) |
handle, never, nextHandle, nextScope
destroy, expandChildren, getHandler, getHandlers, setHandler, setServer
expandHandler, findContainerOf, getChildHandlerByClass, getChildHandlers, getChildHandlersByClass
dumpThis, getServer
addBean, addBean, addBean, contains, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, setBeans, setStopTimeout, start, stop, unmanage, updateBean, updateBeans
addLifeCycleListener, getState, getState, getStopTimeout, 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.protected void doStart() throws Exception
doStart
in class ScopedHandler
Exception
AbstractHandler.doStart()
protected void doStop() throws Exception
doStop
in class AbstractHandler
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 removeEventListener(EventListener listener)
listener
- public void clearEventListeners()
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.