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 class
static 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 TypeMethodDescriptiongetValue()
void
handleRequest
(HttpServerExchange exchange) Handle the request.toString()
-
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
-
getValue
-
toString
-
handleRequest
Description copied from interface:HttpHandler
Handle the request.- Specified by:
handleRequest
in interfaceHttpHandler
- Parameters:
exchange
- the HTTP request/response exchange- Throws:
Exception
-