org.apache.camel.spi
Interface RestConsumerFactory


public interface RestConsumerFactory


Method Summary
 Consumer createConsumer(CamelContext camelContext, Processor processor, String verb, String basePath, String uriTemplate, String consumes, String produces, 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,
                        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 context
processor - the processor
verb - HTTP verb such as GET, POST
basePath - base path
uriTemplate - uri template
consumes - media-types for what this REST service consume as input (accept-type), is null or */* for anything
produces - media-types for what this REST service produces as output, can be null
parameters - additional parameters
Returns:
a newly created REST consumer
Throws:
Exception - can be thrown


Apache Camel