HttpHandler
public class SessionAttachmentHandler extends java.lang.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 | Description |
---|---|
SessionAttachmentHandler(HttpHandler next,
SessionManager sessionManager,
SessionConfig sessionConfig) |
|
SessionAttachmentHandler(SessionManager sessionManager,
SessionConfig sessionConfig) |
Modifier and Type | Method | 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 java.lang.Exception
HttpHandler
handleRequest
in interface HttpHandler
exchange
- the HTTP request/response exchangejava.lang.Exception
public HttpHandler getNext()
public SessionAttachmentHandler setNext(HttpHandler next)
public SessionManager getSessionManager()
public SessionAttachmentHandler setSessionManager(SessionManager sessionManager)
Copyright © 2018. All rights reserved.