public interface RestApiConsumerFactory
RestApiConsumerFactory
that creates the Camel Consumer
responsible
for handling incoming HTTP GET requests from clients that request to access the REST API documentation.
For example most of the Camel components that supports REST-DSL does that,
such as camel-jetty, camel-netty4-http.Modifier and Type | Method and Description |
---|---|
Consumer |
createApiConsumer(CamelContext camelContext,
Processor processor,
String contextPath,
RestConfiguration configuration,
Map<String,Object> parameters)
Creates a new REST API Event
Driven Consumer, which provides API listing of the REST services
|
Consumer createApiConsumer(CamelContext camelContext, Processor processor, String contextPath, RestConfiguration configuration, Map<String,Object> parameters) throws Exception
camelContext
- the camel contextprocessor
- the processorcontextPath
- the context-pathparameters
- additional parametersException
- can be thrownApache Camel