Class RedirectDirHandler

  • All Implemented Interfaces:
    io.undertow.server.HttpHandler

    public class RedirectDirHandler
    extends Object
    implements io.undertow.server.HttpHandler
    Handler that redirects the directory requests without trailing slash to the one append trailing slash.
    Author:
    Lin Gao
    • Constructor Detail

      • RedirectDirHandler

        public RedirectDirHandler​(io.undertow.server.HttpHandler next,
                                  ServletPathMatches paths)
    • Method Detail

      • handleRequest

        public void handleRequest​(io.undertow.server.HttpServerExchange exchange)
                           throws Exception
        Specified by:
        handleRequest in interface io.undertow.server.HttpHandler
        Throws:
        Exception