Package io.undertow.server.handlers
Class SetAttributeHandler
- java.lang.Object
-
- io.undertow.server.handlers.SetAttributeHandler
-
- All Implemented Interfaces:
HttpHandler
public class SetAttributeHandler extends Object implements 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
-
-
Constructor Summary
Constructors Constructor Description SetAttributeHandler(HttpHandler next, ExchangeAttribute attribute, ExchangeAttribute value)SetAttributeHandler(HttpHandler next, String attribute, String value)SetAttributeHandler(HttpHandler next, String attribute, String value, ClassLoader classLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleRequest(HttpServerExchange exchange)Handle the request.
-
-
-
Constructor Detail
-
SetAttributeHandler
public SetAttributeHandler(HttpHandler next, ExchangeAttribute attribute, ExchangeAttribute value)
-
SetAttributeHandler
public SetAttributeHandler(HttpHandler next, String attribute, String value)
-
SetAttributeHandler
public SetAttributeHandler(HttpHandler next, String attribute, String value, ClassLoader classLoader)
-
-
Method Detail
-
handleRequest
public void handleRequest(HttpServerExchange exchange) throws Exception
Description copied from interface:HttpHandlerHandle the request.- Specified by:
handleRequestin interfaceHttpHandler- Parameters:
exchange- the HTTP request/response exchange- Throws:
Exception
-
-