public class RedirectHandler extends Object implements HttpHandler
The location is specified as an exchange attribute string.
ExchangeAttributes| Modifier and Type | Class and Description |
|---|---|
static class |
RedirectHandler.Builder |
| Constructor and Description |
|---|
RedirectHandler(ExchangeAttribute attribute) |
RedirectHandler(String location) |
RedirectHandler(String location,
ClassLoader classLoader) |
| Modifier and Type | Method and Description |
|---|---|
void |
handleRequest(HttpServerExchange exchange)
Handle the request.
|
public RedirectHandler(String location)
public RedirectHandler(String location, ClassLoader classLoader)
public RedirectHandler(ExchangeAttribute attribute)
public void handleRequest(HttpServerExchange exchange) throws Exception
HttpHandlerhandleRequest in interface HttpHandlerexchange - the HTTP request/response exchangeExceptionCopyright © 2017 JBoss by Red Hat. All rights reserved.