Package org.apache.camel.spi
Interface RestProducerFactory
-
public interface RestProducerFactoryAllows SPI to plugin aRestProducerFactorythat creates the CamelProducerresponsible for performing HTTP requests to call a remote REST service.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProducercreateProducer(CamelContext camelContext, String host, String verb, String basePath, String uriTemplate, String queryParameters, String consumes, String produces, RestConfiguration configuration, Map<String,Object> parameters)Creates a new REST producer.
-
-
-
Method Detail
-
createProducer
Producer createProducer(CamelContext camelContext, String host, String verb, String basePath, String uriTemplate, String queryParameters, String consumes, String produces, RestConfiguration configuration, Map<String,Object> parameters) throws Exception
Creates a new REST producer.- Parameters:
camelContext- the camel contexthost- host in the syntax scheme:hostname:port, such as http:myserver:8080verb- HTTP verb such as GET, POSTbasePath- base pathuriTemplate- uri templatequeryParameters- uri query parametersconsumes- media-types for what the REST service consume as input (accept-type), is null or */* for anythingproduces- media-types for what the REST service produces as output, can be nullconfiguration- REST configurationparameters- additional parameters- Returns:
- a newly created REST producer
- Throws:
Exception- can be thrown
-
-