Interface RestEndpointBuilderFactory.RestEndpointBuilder
- All Superinterfaces:
org.apache.camel.builder.EndpointConsumerBuilder,org.apache.camel.EndpointConsumerResolver,org.apache.camel.builder.EndpointProducerBuilder,org.apache.camel.EndpointProducerResolver,RestEndpointBuilderFactory.RestEndpointConsumerBuilder,RestEndpointBuilderFactory.RestEndpointProducerBuilder
- Enclosing interface:
RestEndpointBuilderFactory
public static interface RestEndpointBuilderFactory.RestEndpointBuilder
extends RestEndpointBuilderFactory.RestEndpointConsumerBuilder, RestEndpointBuilderFactory.RestEndpointProducerBuilder
Builder for endpoint for the REST component.
-
Method Summary
Modifier and TypeMethodDescriptionadvanced()Media type such as: 'text/xml', or 'application/json' this REST service accepts.To declare the incoming POJO binding type as a FQN class name.To declare the outgoing POJO binding type as a FQN class name.Media type such as: 'text/xml', or 'application/json' this REST service returns.Name of the route this REST services creates.Methods inherited from interface org.apache.camel.builder.EndpointConsumerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUri, getUriMethods inherited from interface org.apache.camel.EndpointConsumerResolver
resolve, resolveMethods inherited from interface org.apache.camel.builder.EndpointProducerBuilder
doSetMultiValueProperties, doSetMultiValueProperty, doSetProperty, expr, getRawUri, getUriMethods inherited from interface org.apache.camel.EndpointProducerResolver
resolve, resolveMethods inherited from interface org.apache.camel.builder.endpoint.dsl.RestEndpointBuilderFactory.RestEndpointConsumerBuilder
consumerComponentName, descriptionMethods inherited from interface org.apache.camel.builder.endpoint.dsl.RestEndpointBuilderFactory.RestEndpointProducerBuilder
apiDoc, bindingMode, bindingMode, host, producerComponentName, queryParameters
-
Method Details
-
advanced
- Specified by:
advancedin interfaceRestEndpointBuilderFactory.RestEndpointConsumerBuilder- Specified by:
advancedin interfaceRestEndpointBuilderFactory.RestEndpointProducerBuilder
-
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: <code>java.lang.String</code> type. Group: common- Specified by:
consumesin interfaceRestEndpointBuilderFactory.RestEndpointConsumerBuilder- Specified by:
consumesin interfaceRestEndpointBuilderFactory.RestEndpointProducerBuilder- 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: <code>java.lang.String</code> type. Group: common- Specified by:
inTypein interfaceRestEndpointBuilderFactory.RestEndpointConsumerBuilder- Specified by:
inTypein interfaceRestEndpointBuilderFactory.RestEndpointProducerBuilder- 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: <code>java.lang.String</code> type. Group: common- Specified by:
outTypein interfaceRestEndpointBuilderFactory.RestEndpointConsumerBuilder- Specified by:
outTypein interfaceRestEndpointBuilderFactory.RestEndpointProducerBuilder- 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: <code>java.lang.String</code> type. Group: common- Specified by:
producesin interfaceRestEndpointBuilderFactory.RestEndpointConsumerBuilder- Specified by:
producesin interfaceRestEndpointBuilderFactory.RestEndpointProducerBuilder- Parameters:
produces- the value to set- Returns:
- the dsl builder
-
routeId
Name of the route this REST services creates. The option is a: <code>java.lang.String</code> type. Group: common- Specified by:
routeIdin interfaceRestEndpointBuilderFactory.RestEndpointConsumerBuilder- Specified by:
routeIdin interfaceRestEndpointBuilderFactory.RestEndpointProducerBuilder- Parameters:
routeId- the value to set- Returns:
- the dsl builder
-