Package org.apache.camel.spi
Interface RestApiProcessorFactory
-
public interface RestApiProcessorFactory
Allows SPI to plugin aRestApiProcessorFactory
that creates the CamelProcessor
responsible for servicing and generating the REST API documentation. For example the camel-swagger-java component provides such a factory that uses Swagger to generate the documentation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Processor
createApiProcessor(CamelContext camelContext, String contextPath, RestConfiguration configuration, Map<String,Object> parameters)
Creates a new REST API Processor , which provides API listing of the REST services
-
-
-
Method Detail
-
createApiProcessor
Processor createApiProcessor(CamelContext camelContext, String contextPath, RestConfiguration configuration, Map<String,Object> parameters) throws Exception
Creates a new REST API Processor , which provides API listing of the REST services- Parameters:
camelContext
- the camel contextcontextPath
- the context-pathconfiguration
- the rest configurationparameters
- additional parameters- Returns:
- a newly created REST API provider
- Throws:
Exception
- can be thrown
-
-