Class RestRootHandler

java.lang.Object
org.apache.camel.component.undertow.handlers.RestRootHandler
All Implemented Interfaces:
io.undertow.server.HttpHandler

public class RestRootHandler extends Object implements io.undertow.server.HttpHandler
Root handler for Camel rest-dsl.
See Also:
  • Constructor Details

    • RestRootHandler

      public RestRootHandler()
  • Method Details

    • init

      public void init(int port)
      Initializes this handler with the given port.
    • addConsumer

      public void addConsumer(UndertowConsumer consumer)
      Adds the given consumer.
    • removeConsumer

      public void removeConsumer(UndertowConsumer consumer)
      Removes the given consumer
    • consumers

      public int consumers()
      Number of active consumers
    • handleRequest

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