Package io.undertow.server.handlers
Class SetAttributeHandler
java.lang.Object
io.undertow.server.handlers.SetAttributeHandler
- All Implemented Interfaces:
HttpHandler
Handler that can set an arbitrary attribute on the exchange. Both the attribute and the
value to set are expressed as exchange attributes.
- Author:
- Stuart Douglas
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
ConstructorsConstructorDescriptionSetAttributeHandler(HttpHandler next, ExchangeAttribute attribute, ExchangeAttribute value) SetAttributeHandler(HttpHandler next, ExchangeAttribute attribute, ExchangeAttribute value, boolean preCommit) SetAttributeHandler(HttpHandler next, String attribute, String value) SetAttributeHandler(HttpHandler next, String attribute, String value, boolean preCommit) SetAttributeHandler(HttpHandler next, String attribute, String value, ClassLoader classLoader) SetAttributeHandler(HttpHandler next, String attribute, String value, ClassLoader classLoader, boolean preCommit) -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleRequest(HttpServerExchange exchange) Handle the request.
-
Constructor Details
-
SetAttributeHandler
-
SetAttributeHandler
-
SetAttributeHandler
public SetAttributeHandler(HttpHandler next, String attribute, String value, ClassLoader classLoader) -
SetAttributeHandler
public SetAttributeHandler(HttpHandler next, ExchangeAttribute attribute, ExchangeAttribute value, boolean preCommit) -
SetAttributeHandler
-
SetAttributeHandler
public SetAttributeHandler(HttpHandler next, String attribute, String value, ClassLoader classLoader, boolean preCommit)
-
-
Method Details
-
handleRequest
Description copied from interface:HttpHandlerHandle the request.- Specified by:
handleRequestin interfaceHttpHandler- Parameters:
exchange- the HTTP request/response exchange- Throws:
Exception
-