Interface RestApiConsumerFactory


public interface RestApiConsumerFactory
Allows SPI to plugin a 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-netty-http.

  • Method Details

    • createApiConsumer

      Consumer createApiConsumer(CamelContext camelContext, Processor processor, String contextPath, RestConfiguration configuration, Map<String,Object> parameters) throws Exception
      Creates a new REST API Event Driven Consumer, which provides API listing of the REST services
      Parameters:
      camelContext - the camel context
      processor - the processor
      contextPath - the context-path
      configuration - REST configuration
      parameters - additional parameters
      Returns:
      a newly created REST API consumer
      Throws:
      Exception - can be thrown