public class SessionHandler extends ScopedHandler
AbstractLifeCycle.AbstractLifeCycleListenerLifeCycle.Listener_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,
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()
Start the managed lifecycle beans in the order they were added.
|
protected void |
doStop()
Stop the joined lifecycle beans in the reverse order they were added.
|
SessionManager |
getSessionManager() |
void |
setServer(Server server) |
void |
setSessionManager(SessionManager sessionManager) |
handle, never, nextHandle, nextScopedestroy, expandChildren, getHandler, getHandlers, getNestedHandlerByClass, setHandlerdump, expandHandler, findContainerOf, getChildHandlerByClass, getChildHandlers, getChildHandlersByClassdumpThis, getServeraddBean, addBean, contains, dump, dump, dump, dump, dumpObject, dumpStdErr, getBean, getBeans, getBeans, isManaged, manage, removeBean, removeBeans, unmanageaddLifeCycleListener, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stopclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stoppublic 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 HandlersetServer in class HandlerWrapperprotected void doStart()
throws Exception
AggregateLifeCycledoStart in class ScopedHandlerExceptionHandlerWrapper.doStart()protected void doStop()
throws Exception
AggregateLifeCycledoStop in class HandlerWrapperExceptionAbstractLifeCycle.doStart()public void doScope(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
doScope in class ScopedHandlerIOExceptionServletExceptionpublic void doHandle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
doHandle in class ScopedHandlerIOExceptionServletExceptionprotected void checkRequestedSessionId(Request baseRequest, HttpServletRequest request)
baseRequest - request - public void addEventListener(EventListener listener)
listener - public void clearEventListeners()
Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.