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
HttpHandler
handleRequest
in interface HttpHandler
exchange
- the HTTP request/response exchangeException
Copyright © 2019 JBoss by Red Hat. All rights reserved.