Class RedirectDirHandler

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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void handleRequest​(io.undertow.server.HttpServerExchange exchange)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RedirectDirHandler

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

      • handleRequest

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