HttpHandlerpublic class RedirectHandler extends Object implements HttpHandler
The location is specified as an exchange attribute string.
ExchangeAttributes| Modifier and Type | Class | Description |
|---|---|---|
static class |
RedirectHandler.Builder |
| Constructor | Description |
|---|---|
RedirectHandler(ExchangeAttribute attribute) |
|
RedirectHandler(String location) |
|
RedirectHandler(String location,
ClassLoader classLoader) |
| Modifier and Type | Method | 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 © 2018. All rights reserved.