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()voidhandleRequest(HttpServerExchange exchange) Handle the request.voidsetInstance(T instance) voidsetNext(HttpHandler next)
-
Constructor Details
-
AttachmentHandler
-
AttachmentHandler
-
-
Method Details
-
handleRequest
Description copied from interface:HttpHandlerHandle the request.- Specified by:
handleRequestin interfaceHttpHandler- Parameters:
exchange- the HTTP request/response exchange- Throws:
Exception
-
getInstance
-
setInstance
-
getNext
-
setNext
-