...
Option | Default | Description | ||||
---|---|---|---|---|---|---|
| The Camel Rest component to use for the REST transport, such as 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 | |||||
|
| The scheme to use for exposing the REST service. Usually | ||||
| The hostname to use for exposing the REST service. | |||||
| The port number to use for exposing the REST service.
| |||||
| Sets a leading context-path the REST services will be using. This can be used when using components such as SERVLET where the deployed web application is deployed using a context-path. | |||||
|
| If no hostname has been explicit configured, then this resolver is used to compute the hostname the REST service will be using. The resolver supports:
For Camel 2.16.x or older: localHostName From Camel 2.17: | ||||
|
| Whether binding is in use. See further above for more details. | ||||
|
| Camel 2.14.1: Whether to skip binding on output if there is a custom HTTP error code header. This allows to build custom error messages that do not bind to JSON/XML etc, as success messages otherwise will do. See below for an example. | ||||
|
| Camel 2.14.1: Whether to enable CORS headers in the HTTP response. | ||||
| Name of specific JSON data format to use. By default
| |||||
| Name of specific XML data format to use. By default
| |||||
| Allows to configure as many additional properties. This is used to configure component specific options such as for Restlet / Spark-Rest etc. The options value can use the | |||||
| Allows to configure as many additional properties. This is used to configure endpoint specific options for Restlet / Spark-Rest etc. The options value can use the | |||||
| Allows to configure as many additional properties. This is used to configure consumer specific options for Restlet / Spark-Rest etc. The options value can use the | |||||
| Allows to configure as many additional properties. This is used to configure the data format specific options. For example set property From Camel 2.14.1: the keys can be prefixed with either:
to denote that the option is only for either JSON or XML data format, and only for either the in or the out going. For example a key with value A key without a prefix is a common key for all situations. From Camel 2.17: the options value can use the | |||||
| Allows to configure custom CORS headers. |
...
Key | Value |
---|---|
|
|
|
|
|
|
|
|
Defining a Custom Error Message As-is
...