Package io.undertow.server.handlers
Class RedirectHandler
java.lang.Object
io.undertow.server.handlers.RedirectHandler
- All Implemented Interfaces:
HttpHandler
A redirect handler that redirects to the specified location via a 302 redirect.
The location is specified as an exchange attribute string.
- Author:
- Stuart Douglas
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionRedirectHandler
(ExchangeAttribute attribute) RedirectHandler
(String location) RedirectHandler
(String location, ClassLoader classLoader) -
Method Summary
Modifier and TypeMethodDescriptionvoid
handleRequest
(HttpServerExchange exchange) Handle the request.toString()
-
Constructor Details
-
RedirectHandler
-
RedirectHandler
-
RedirectHandler
-
-
Method Details
-
handleRequest
Description copied from interface:HttpHandler
Handle the request.- Specified by:
handleRequest
in interfaceHttpHandler
- Parameters:
exchange
- the HTTP request/response exchange- Throws:
Exception
-
toString
-