Package io.undertow.server.handlers
Class AttachmentHandler<T>
java.lang.Object
io.undertow.server.handlers.AttachmentHandler<T>
- All Implemented Interfaces:
HttpHandler
Handler that adds an attachment to the request
- Author:
- Stuart Douglas
-
Constructor Summary
ConstructorsConstructorDescriptionAttachmentHandler
(AttachmentKey<T> key, HttpHandler next) AttachmentHandler
(AttachmentKey<T> key, HttpHandler next, T instance) -
Method Summary
Modifier and TypeMethodDescriptiongetNext()
void
handleRequest
(HttpServerExchange exchange) Handle the request.void
setInstance
(T instance) void
setNext
(HttpHandler next)
-
Constructor Details
-
AttachmentHandler
-
AttachmentHandler
-
-
Method Details
-
handleRequest
Description copied from interface:HttpHandler
Handle the request.- Specified by:
handleRequest
in interfaceHttpHandler
- Parameters:
exchange
- the HTTP request/response exchange- Throws:
Exception
-
getInstance
-
setInstance
-
getNext
-
setNext
-