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 TypeMethodDescriptionvoidhandleRequest(HttpServerExchange exchange) Handle the request.
-
Constructor Details
-
RedirectHandler
-
RedirectHandler
-
RedirectHandler
-
-
Method Details
-
handleRequest
Description copied from interface:HttpHandlerHandle the request.- Specified by:
handleRequestin interfaceHttpHandler- Parameters:
exchange- the HTTP request/response exchange- Throws:
Exception
-