Package io.undertow.server.session
Class SessionAttachmentHandler
- java.lang.Object
-
- io.undertow.server.session.SessionAttachmentHandler
-
- All Implemented Interfaces:
HttpHandler
public class SessionAttachmentHandler extends java.lang.Object implements HttpHandler
Handler that attaches the session to the request.This handler is also the place where session cookie configuration properties are configured.
note: this approach is not used by Servlet, which has its own session handlers
- Author:
- Stuart Douglas
-
-
Constructor Summary
Constructors Constructor Description SessionAttachmentHandler(HttpHandler next, SessionManager sessionManager, SessionConfig sessionConfig)SessionAttachmentHandler(SessionManager sessionManager, SessionConfig sessionConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpHandlergetNext()SessionManagergetSessionManager()voidhandleRequest(HttpServerExchange exchange)Handle the request.SessionAttachmentHandlersetNext(HttpHandler next)SessionAttachmentHandlersetSessionManager(SessionManager sessionManager)
-
-
-
Constructor Detail
-
SessionAttachmentHandler
public SessionAttachmentHandler(SessionManager sessionManager, SessionConfig sessionConfig)
-
SessionAttachmentHandler
public SessionAttachmentHandler(HttpHandler next, SessionManager sessionManager, SessionConfig sessionConfig)
-
-
Method Detail
-
handleRequest
public void handleRequest(HttpServerExchange exchange) throws java.lang.Exception
Description copied from interface:HttpHandlerHandle the request.- Specified by:
handleRequestin interfaceHttpHandler- Parameters:
exchange- the HTTP request/response exchange- Throws:
java.lang.Exception
-
getNext
public HttpHandler getNext()
-
setNext
public SessionAttachmentHandler setNext(HttpHandler next)
-
getSessionManager
public SessionManager getSessionManager()
-
setSessionManager
public SessionAttachmentHandler setSessionManager(SessionManager sessionManager)
-
-