Package org.apache.camel.spi
Interface RestConsumerFactory
-
public interface RestConsumerFactory
Allows SPI to plugin aRestConsumerFactory
that creates the CamelConsumer
responsible for handling incoming HTTP requests from clients that request to access REST services which has been created using the rest-dsl.- See Also:
RestApiConsumerFactory
,RestApiProcessorFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Consumer
createConsumer(CamelContext camelContext, Processor processor, String verb, String basePath, String uriTemplate, String consumes, String produces, RestConfiguration configuration, Map<String,Object> parameters)
Creates a new REST Event Driven Consumer, which consumes messages from the endpoint using the given processor
-
-
-
Method Detail
-
createConsumer
Consumer createConsumer(CamelContext camelContext, Processor processor, String verb, String basePath, String uriTemplate, String consumes, String produces, RestConfiguration configuration, Map<String,Object> parameters) throws Exception
Creates a new REST Event Driven Consumer, which consumes messages from the endpoint using the given processor- Parameters:
camelContext
- the camel contextprocessor
- the processorverb
- HTTP verb such as GET, POSTbasePath
- base pathuriTemplate
- uri templateconsumes
- media-types for what this REST service consume as input (accept-type), is null or */* for anythingproduces
- media-types for what this REST service produces as output, can be nullconfiguration
- REST configurationparameters
- additional parameters- Returns:
- a newly created REST consumer
- Throws:
Exception
- can be thrown
-
-