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:
CamelRootHandler
-
-
Constructor Summary
Constructors Constructor Description RestRootHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addConsumer(UndertowConsumer consumer)
Adds the given consumer.int
consumers()
Number of active consumersvoid
handleRequest(io.undertow.server.HttpServerExchange httpServerExchange)
void
init(int port)
Initializes this handler with the given port.void
removeConsumer(UndertowConsumer consumer)
Removes the given consumer
-
-
-
Method Detail
-
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
-
-