Interface RestEndpointBuilderFactory.RestEndpointProducerBuilder
- All Superinterfaces:
org.apache.camel.builder.EndpointProducerBuilder
,org.apache.camel.EndpointProducerResolver
- All Known Subinterfaces:
RestEndpointBuilderFactory.RestEndpointBuilder
- Enclosing interface:
RestEndpointBuilderFactory
public static interface RestEndpointBuilderFactory.RestEndpointProducerBuilder
extends org.apache.camel.builder.EndpointProducerBuilder
Builder for endpoint producers for the REST component.
-
Method Summary
Modifier and TypeMethodDescriptionadvanced()
The openapi api doc resource to use.bindingMode
(String bindingMode) Configures the binding mode for the producer.bindingMode
(org.apache.camel.spi.RestConfiguration.RestBindingMode bindingMode) Configures the binding mode for the producer.Media type such as: 'text/xml', or 'application/json' this REST service accepts.Host and port of HTTP service to use (override host in openapi schema).To declare the incoming POJO binding type as a FQN class name.To declare the outgoing POJO binding type as a FQN class name.producerComponentName
(String producerComponentName) The Camel Rest component to use for the producer REST transport, such as http, undertow.Media type such as: 'text/xml', or 'application/json' this REST service returns.queryParameters
(String queryParameters) Query parameters for the HTTP service to call.Name of the route this REST services creates.Methods inherited from interface org.apache.camel.builder.EndpointProducerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUri, getUri
Methods inherited from interface org.apache.camel.EndpointProducerResolver
resolve, resolve
-
Method Details
-
advanced
-
consumes
Media type such as: 'text/xml', or 'application/json' this REST service accepts. By default we accept all kinds of types. The option is a:java.lang.String
type. Group: common- Parameters:
consumes
- the value to set- Returns:
- the dsl builder
-
inType
To declare the incoming POJO binding type as a FQN class name. The option is a:java.lang.String
type. Group: common- Parameters:
inType
- the value to set- Returns:
- the dsl builder
-
outType
To declare the outgoing POJO binding type as a FQN class name. The option is a:java.lang.String
type. Group: common- Parameters:
outType
- the value to set- Returns:
- the dsl builder
-
produces
Media type such as: 'text/xml', or 'application/json' this REST service returns. The option is a:java.lang.String
type. Group: common- Parameters:
produces
- the value to set- Returns:
- the dsl builder
-
routeId
Name of the route this REST services creates. The option is a:java.lang.String
type. Group: common- Parameters:
routeId
- the value to set- Returns:
- the dsl builder
-
apiDoc
The openapi api doc resource to use. The resource is loaded from classpath by default and must be in JSON format. The option is a:java.lang.String
type. Group: producer- Parameters:
apiDoc
- the value to set- Returns:
- the dsl builder
-
bindingMode
default RestEndpointBuilderFactory.RestEndpointProducerBuilder bindingMode(org.apache.camel.spi.RestConfiguration.RestBindingMode bindingMode) Configures the binding mode for the producer. If set to anything other than 'off' the producer will try to convert the body of the incoming message from inType to the json or xml, and the response from json or xml to outType. The option is a:org.apache.camel.spi.RestConfiguration.RestBindingMode
type. Group: producer- Parameters:
bindingMode
- the value to set- Returns:
- the dsl builder
-
bindingMode
Configures the binding mode for the producer. If set to anything other than 'off' the producer will try to convert the body of the incoming message from inType to the json or xml, and the response from json or xml to outType. The option will be converted to aorg.apache.camel.spi.RestConfiguration.RestBindingMode
type. Group: producer- Parameters:
bindingMode
- the value to set- Returns:
- the dsl builder
-
host
Host and port of HTTP service to use (override host in openapi schema). The option is a:java.lang.String
type. Group: producer- Parameters:
host
- the value to set- Returns:
- the dsl builder
-
producerComponentName
default RestEndpointBuilderFactory.RestEndpointProducerBuilder producerComponentName(String producerComponentName) The Camel Rest component to use for the producer REST transport, such as http, undertow. If no component has been explicitly configured, then Camel will lookup if there is a Camel component that integrates with the Rest DSL, or if a org.apache.camel.spi.RestProducerFactory is registered in the registry. If either one is found, then that is being used. The option is a:java.lang.String
type. Group: producer- Parameters:
producerComponentName
- the value to set- Returns:
- the dsl builder
-
queryParameters
default RestEndpointBuilderFactory.RestEndpointProducerBuilder queryParameters(String queryParameters) Query parameters for the HTTP service to call. The query parameters can contain multiple parameters separated by ampersand such such as foo=123&bar=456. The option is a:java.lang.String
type. Group: producer- Parameters:
queryParameters
- the value to set- Returns:
- the dsl builder
-