Interface RestProducerFactory


public interface RestProducerFactory
Allows SPI to plugin a RestProducerFactory that creates the Camel Producer responsible for performing HTTP requests to call a remote REST service.
  • Method Details

    • 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 context
      host - host in the syntax scheme:hostname:port, such as http:myserver:8080
      verb - HTTP verb such as GET, POST
      basePath - base path
      uriTemplate - uri template
      queryParameters - uri query parameters
      consumes - media-types for what the REST service consume as input (accept-type), is null or */* for anything
      produces - media-types for what the REST service produces as output, can be null
      configuration - REST configuration
      parameters - additional parameters
      Returns:
      a newly created REST producer
      Throws:
      Exception - can be thrown