Class CamelRootHandler

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

    public class CamelRootHandler
    extends Object
    implements io.undertow.server.HttpHandler
    Custom root handler to enable hot swapping individual handlers assigned for each path template and/or HTTP method.
    See Also:
    RestRootHandler
    • Constructor Detail

      • CamelRootHandler

        public CamelRootHandler​(io.undertow.server.HttpHandler defaultHandler)
    • Method Detail

      • handleRequest

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

        public io.undertow.server.HttpHandler add​(String path,
                                                  String methods,
                                                  boolean prefixMatch,
                                                  io.undertow.server.HttpHandler handler)
      • remove

        public void remove​(String path,
                           String methods,
                           boolean prefixMatch)
      • isEmpty

        public boolean isEmpty()