Package org.apache.camel.spi
Interface RestApiProcessorFactory
-
public interface RestApiProcessorFactoryAllows SPI to plugin aRestApiProcessorFactorythat creates the CamelProcessorresponsible for servicing and generating the REST API documentation. For example the camel-openapi-java or camel-swagger-java component provides such a factory that uses OpenAPI/Swagger to generate the documentation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProcessorcreateApiProcessor(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
-
-