public class SetHeaderHandler extends Object implements HttpHandler
Modifier and Type | Class and Description |
---|---|
static class | SetHeaderHandler.Builder |
Constructor and Description |
---|
SetHeaderHandler(HttpHandler next, String header, ExchangeAttribute value) |
SetHeaderHandler(HttpHandler next, String header, String value) |
SetHeaderHandler(String header, String value) |
Modifier and Type | Method and Description |
---|---|
HttpString | getHeader() |
ExchangeAttribute | getValue() |
void | handleRequest(HttpServerExchange exchange) Handle the request. |
public SetHeaderHandler(HttpHandler next, String header, ExchangeAttribute value)
public SetHeaderHandler(HttpHandler next, String header, String value)
public void handleRequest(HttpServerExchange exchange) throws Exception
HttpHandler
handleRequest
in interface HttpHandler
exchange
- the HTTP request/response exchangeException
public ExchangeAttribute getValue()
public HttpString getHeader()
Copyright © 2015 JBoss by Red Hat. All rights reserved.