Class CamelRootHandler

java.lang.Object
org.apache.camel.component.undertow.handlers.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:
  • Constructor Details

    • CamelRootHandler

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

    • 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()
    • toString

      public String toString()
      Overrides:
      toString in class Object