Package io.undertow.servlet.handlers
Class RedirectDirHandler
- java.lang.Object
-
- io.undertow.servlet.handlers.RedirectDirHandler
-
- All Implemented Interfaces:
HttpHandler
public class RedirectDirHandler extends Object implements HttpHandler
Handler that redirects the directory requests without trailing slash to the one append trailing slash.- Author:
- Lin Gao
-
-
Constructor Summary
Constructors Constructor Description RedirectDirHandler(HttpHandler next, ServletPathMatches paths)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleRequest(HttpServerExchange exchange)Handle the request.
-
-
-
Constructor Detail
-
RedirectDirHandler
public RedirectDirHandler(HttpHandler next, ServletPathMatches paths)
-
-
Method Detail
-
handleRequest
public void handleRequest(HttpServerExchange exchange) throws Exception
Description copied from interface:HttpHandlerHandle the request.- Specified by:
handleRequestin interfaceHttpHandler- Parameters:
exchange- the HTTP request/response exchange- Throws:
Exception
-
-