public interface RestApiProcessorFactory
RestApiProcessorFactory that creates the Camel Processor 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.| Modifier and Type | Method and Description |
|---|---|
Processor |
createApiProcessor(CamelContext camelContext,
String contextPath,
String contextIdPattern,
boolean contextIdListing,
RestConfiguration configuration,
Map<String,Object> parameters)
Creates a new REST API Processor
, which provides API listing of the REST services
|
Processor createApiProcessor(CamelContext camelContext, String contextPath, String contextIdPattern, boolean contextIdListing, RestConfiguration configuration, Map<String,Object> parameters) throws Exception
camelContext - the camel contextcontextPath - the context-pathcontextIdPattern - id pattern to only allow Rest APIs from rest services within CamelContext's which name matches the pattern.parameters - additional parametersException - can be thrownApache Camel