public class SessionAttachmentHandler extends Object implements HttpHandler
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
Constructor and Description |
---|
SessionAttachmentHandler(HttpHandler next, SessionManager sessionManager, SessionConfig sessionConfig) |
SessionAttachmentHandler(SessionManager sessionManager, SessionConfig sessionConfig) |
Modifier and Type | Method and Description |
---|---|
HttpHandler | getNext() |
SessionManager | getSessionManager() |
void | handleRequest(HttpServerExchange exchange) Handle the request. |
SessionAttachmentHandler | setNext(HttpHandler next) |
SessionAttachmentHandler | setSessionManager(SessionManager sessionManager) |
public SessionAttachmentHandler(SessionManager sessionManager, SessionConfig sessionConfig)
public SessionAttachmentHandler(HttpHandler next, SessionManager sessionManager, SessionConfig sessionConfig)
public void handleRequest(HttpServerExchange exchange) throws Exception
HttpHandler
handleRequest
in interface HttpHandler
exchange
- the HTTP request/response exchangeException
public HttpHandler getNext()
public SessionAttachmentHandler setNext(HttpHandler next)
public SessionManager getSessionManager()
public SessionAttachmentHandler setSessionManager(SessionManager sessionManager)
Copyright © 2020 JBoss by Red Hat. All rights reserved.