...
You can append query options to the URI in the following format, ?option=value&option=value&...
Options
...
Name | Default Value | Description |
---|---|---|
| An instance of | Use the |
| An instance of | The bean ID of a |
| | On a producer endpoint, specifies the request method to use. On a consumer endpoint, specifies that the endpoint consumes only |
| None | Consumer only Specify one or more methods separated by commas (e.g. |
| | The bean ID of the Realm Map in the Camel Registry. |
| None | Consumer only Specify one ore more URI templates to be serviced by a restlet consumer endpoint, using the |
| true | *Producer only * Throws exception on a producer failure. |
| 300000 | Since Camel 2.12.3 Producer only The Client will give up connection if the connection is timeout, 0 for unlimited wait. |
| 300000 | Since Camel 2.12.3 Producer only The Client socket receive timeout, 0 for unlimited wait. |
...
Component Options
The Restlet component can be configured with the following options. Notice these are component options and cannot be configured on the endpoint, see further below for an example.
...
an example.
Name | Default Value | Description |
---|---|---|
| | Camel 2.10: |
...
Indicates |
...
if |
...
the |
...
controller |
...
thread |
...
should |
...
be |
...
a |
...
daemon |
...
(not |
...
blocking |
...
JVM |
...
exit) |
...
. | ||
| | Camel 2.10: |
...
Time |
...
for |
...
the |
...
controller |
...
thread |
...
to |
...
sleep |
...
between |
...
each |
...
control. |
...
| | Camel 2.10: |
...
The |
...
size |
...
of |
...
the |
...
buffer |
...
when |
...
reading |
...
messages. |
...
| | Camel 2.10: |
...
Minimum |
...
threads |
...
waiting |
...
to |
...
service |
...
requests. |
...
| | Camel 2.10: |
...
Maximum |
...
threads |
...
that |
...
will |
...
service |
...
requests. |
...
| | Camel 2.10: |
...
Maximum |
...
number |
...
of |
...
concurrent |
...
connections |
...
per |
...
host |
...
(IP |
...
address). |
...
| | Camel 2.10: |
...
Maximum |
...
number |
...
of |
...
concurrent |
...
connections |
...
in |
...
total. |
...
| | Camel 2.10: |
...
The |
...
size |
...
of |
...
the |
...
buffer |
...
when |
...
writing |
...
messages. |
...
| | Camel 2.10: |
...
Indicates |
...
if |
...
connections |
...
should |
...
be |
...
kept |
...
alive |
...
after |
...
a |
...
call. |
...
| | Camel 2.10: |
...
Indicates |
...
if |
...
pipelining |
...
connections |
...
are |
...
supported. |
...
| | Camel 2.10: Time for an idle thread to wait for an operation before being collected. |
| | Camel 2.10: Lookup the "X-Forwarded-For" |
...
header |
...
supported |
...
by |
...
popular |
...
proxies |
...
and |
...
caches |
...
and |
...
uses |
...
it |
...
to |
...
populate |
...
the |
...
Request.getClientAddresses() |
...
method |
...
result. |
...
This |
...
information |
...
is |
...
only |
...
safe |
...
for |
...
intermediary |
...
components |
...
within |
...
your |
...
local |
...
network. |
...
Other |
...
addresses |
...
could |
...
easily |
...
be |
...
changed |
...
by |
...
setting |
...
a |
...
fake |
...
header |
...
and |
...
should |
...
not |
...
be |
...
trusted |
...
for |
...
serious |
...
security |
...
checks. |
...
| | Camel 2.10.5/2.11.1: |
...
Enable/disable |
...
the |
...
SO_REUSEADDR |
...
socket |
...
option. |
...
See |
...
java.io.ServerSocket#reuseAddress |
...
property |
...
for |
...
additional |
...
details. |
...
Message Headers
Wiki Markup |
---|
{div:class=confluenceTableSmall} || Name || Type || Description || | {{Content-Type}} | {{String}} | Specifies the content type, which can be set on the OUT message by the application/processor. The value is the {{content-type}} of the response message. If this header is not set, the content type is based on the object type of the OUT message body. In Camel 2.3 onward, if the Content-Type header is specified in the Camel IN message, the value of the header determine the content type for the Restlet request message. Otherwise, it is defaulted to "application/x-www-form-urlencoded'. Prior to release 2.3, it is not possible to change the request content type default. | | {{CamelAcceptContentType}} | {{String}} | *Since Camel 2.9.3, 2.10.0:* The HTTP Accept request header. | | {{CamelHttpMethod}} | {{String}} | The HTTP request method. This is set in the IN message header. | | {{CamelHttpQuery}} | {{String}} | The query string of the request URI. It is set on the IN message by {{DefaultRestletBinding}} when the restlet component receives a request. | | {{CamelHttpResponseCode}} | {{String}} or {{Integer}} | The response code can be set on the OUT message by the application/processor. The value is the response code of the response message. If this header is not set, the response code is set by the restlet runtime engine. | | {{CamelHttpUri}} | {{String}} | The HTTP request URI. This is set in the IN message header. | | {{CamelRestletLogin}} | {{String}} | Login name for basic authentication. It is set on the IN message by the application and gets filtered before the restlet request header by Camel. | | {{CamelRestletPassword}} | {{String}} | Password name for basic authentication. It is set on the IN message by the application and gets filtered before the restlet request header by Camel. | | {{CamelRestletRequest}} | {{Request}} | *Camel 2.8:* The {{org.restlet.Request}} object which holds all request details. | | {{CamelRestletResponse}} | {{Response}} | *Camel 2.8:* The {{org.restlet.Response}} object. You can use this to create responses using the API from Restlet. See examples below. | | {{org.restlet.\*}} | | Attributes of a Restlet message that get propagated to Camel IN headers. | | {{cache-control}}| {{String}} or {{List<CacheDirective>}} | *Camel 2.11:* User can set the cache-control with the String value or the List of CacheDirective of Restlet from the camel message header. | {div} |
...