...
Option |
Default |
Description |
component |
|
The Camel Rest component to use for the REST transport, such as restlet, spark-rest. If no component has been explicit configured, then Camel will lookup if there is a Camel component that integrates with the Rest DSL, or if a org.apache.camel.spi.RestConsumerFactory is registered in the registry. If either one is found, then that is being used. |
scheme |
http |
The scheme to use for exposing the REST service. Usually http or https is supported |
hostname |
0.0.0.0 |
The hostname to use for exposing the REST service. |
port |
|
The port number to use for exposing the REST service. |
bindingMode |
off |
Whether binding is in use. See further above for more details. |
jsonDataFormat |
|
Name of specific json data format to use. By default json-jackson will be used. Notice: Currently Jackson is what we recommend and are using for testing. |
xmlDataFormat |
|
Name of specific XML data format to use. By default jaxb will be used. Notice: Currently only jaxb is supported. |
componentProperty |
|
Allows to configure as many additional properties. This is used to configure component specific options such as for Restlet / Spark-Rest etc. |
endpointProperty |
|
Allows to configure as many additional properties. This is used to configure endpoint specific options for Restlet / Spark-Rest etc. |
consumerProperty |
|
Allows to configure as many additional properties. This is used to configure consumer specific options for Restlet / Spark-Rest etc. |
dataFormatProperty |
|
Allows to configure as many additional properties. This is used to configure the data format specific options. For example set property prettyPrint to true to have json outputted in pretty mode. |
For example to configure to use the spark-rest component on port 9091, then we can do as follows
...