Class RestRootHandler
java.lang.Object
org.apache.camel.component.undertow.handlers.RestRootHandler
- All Implemented Interfaces:
io.undertow.server.HttpHandler
Root handler for Camel rest-dsl.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConsumer(UndertowConsumer consumer) Adds the given consumer.intNumber of active consumersvoidhandleRequest(io.undertow.server.HttpServerExchange httpServerExchange) voidinit(int port) Initializes this handler with the given port.voidremoveConsumer(UndertowConsumer consumer) Removes the given consumer
-
Constructor Details
-
RestRootHandler
public RestRootHandler()
-
-
Method Details
-
init
public void init(int port) Initializes this handler with the given port. -
addConsumer
Adds the given consumer. -
removeConsumer
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:
handleRequestin interfaceio.undertow.server.HttpHandler- Throws:
Exception
-