Package io.undertow.server.session
Class SessionAttachmentHandler
java.lang.Object
io.undertow.server.session.SessionAttachmentHandler
- All Implemented Interfaces:
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
ConstructorsConstructorDescriptionSessionAttachmentHandler(HttpHandler next, SessionManager sessionManager, SessionConfig sessionConfig) SessionAttachmentHandler(SessionManager sessionManager, SessionConfig sessionConfig) -
Method Summary
Modifier and TypeMethodDescriptiongetNext()voidhandleRequest(HttpServerExchange exchange) Handle the request.setNext(HttpHandler next) setSessionManager(SessionManager sessionManager)
-
Constructor Details
-
SessionAttachmentHandler
-
SessionAttachmentHandler
public SessionAttachmentHandler(HttpHandler next, SessionManager sessionManager, SessionConfig sessionConfig)
-
-
Method Details
-
handleRequest
Description copied from interface:HttpHandlerHandle the request.- Specified by:
handleRequestin interfaceHttpHandler- Parameters:
exchange- the HTTP request/response exchange- Throws:
Exception
-
getNext
-
setNext
-
getSessionManager
-
setSessionManager
-