public class SessionHandler extends ScopedHandler
AbstractLifeCycle.AbstractLifeCycleListener
LifeCycle.Listener
Container.InheritedListener, Container.Listener
Modifier and Type | Field and Description |
---|---|
static EnumSet<SessionTrackingMode> |
DEFAULT_TRACKING |
static Class<? extends EventListener>[] |
SESSION_LISTENER_TYPES |
_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,
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()
Starts the managed lifecycle beans in the order they were added.
|
protected void |
doStop()
Stops the managed lifecycle beans in the reverse order they were added.
|
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, addEventListener, addManaged, contains, dump, dump, dump, dump, dump, dumpBeans, dumpObject, dumpStdErr, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, removeEventListener, 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<SessionTrackingMode> DEFAULT_TRACKING
public static final Class<? extends EventListener>[] SESSION_LISTENER_TYPES
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
ContainerLifeCycle
doStart
in class ScopedHandler
Exception
AbstractHandler.doStart()
protected void doStop() throws Exception
ContainerLifeCycle
doStop
in class AbstractHandler
Exception
public void doScope(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
doScope
in class ScopedHandler
IOException
ServletException
public void doHandle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
doHandle
in class ScopedHandler
IOException
ServletException
protected void checkRequestedSessionId(Request baseRequest, HttpServletRequest request)
baseRequest
- request
- public void addEventListener(EventListener listener)
listener
- public void removeEventListener(EventListener listener)
listener
- public void clearEventListeners()
Copyright © 1995-2015 Webtide. All Rights Reserved.