camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r910356 - in /websites/production/camel/content: cache/main.pageCache restlet.html
Date Thu, 29 May 2014 02:17:51 GMT
Author: buildbot
Date: Thu May 29 02:17:51 2014
New Revision: 910356

Log:
Production update by buildbot for camel

Modified:
    websites/production/camel/content/cache/main.pageCache
    websites/production/camel/content/restlet.html

Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.

Modified: websites/production/camel/content/restlet.html
==============================================================================
--- websites/production/camel/content/restlet.html (original)
+++ websites/production/camel/content/restlet.html Thu May 29 02:17:51 2014
@@ -100,9 +100,7 @@
 </div></div><p>Format of restletUrl:</p><div class="code panel
pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
 <script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[protocol://hostname[:port][/resourcePattern]
 ]]></script>
-</div></div><p>Restlet promotes decoupling of protocol and application
concerns. The reference implementation of <a shape="rect" class="external-link" href="http://www.noelios.com/products/restlet-engine"
rel="nofollow">Restlet Engine</a> supports a number of protocols. However, we have
tested the HTTP protocol only. The default port is port 80. We do not automatically switch
default port based on the protocol yet.</p><p>You can append query options to
the URI in the following format, <code>?option=value&amp;option=value&amp;...</code></p><h3
id="Restlet-Options">Options</h3><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th
colspan="1" rowspan="1" class="confluenceTh"><p> Name </p></th><th
colspan="1" rowspan="1" class="confluenceTh"><p> Default Value </p></th><th
colspan="1" rowspan="1" class="confluenceTh"><p> Description </p></th></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>headerFilterStrategy=#</code><em>refName</em>
</p></td><td colsp
 an="1" rowspan="1" class="confluenceTd"><p> An instance of <code>RestletHeaderFilterStrategy</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Use
the <code>#</code> notation (<code>headerFilterStrategy=#</code><em>refName</em>)
to reference a header filter strategy in the Camel Registry.  The strategy will be plugged
into the restlet binding if it is <code>HeaderFilterStrategyAware</code>. </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>restletBinding=#</code><em>refName</em>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> An instance
of <code>DefaultRestletBinding</code> </p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p> The bean ID of a <code>RestletBinding</code>
object in the Camel Registry. </p></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p> <code>restletMethod</code> </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>GET</code> </p></td><td
colspan="1" rowspan="1" clas
 s="confluenceTd"><p> On a producer endpoint, specifies the request method to use.
 On a consumer endpoint, specifies that the endpoint consumes only <code>restletMethod</code>
requests.  The string value is converted to <a shape="rect" class="external-link" href="http://www.restlet.org/documentation/1.1/api/org/restlet/data/Method.html"
rel="nofollow">org.restlet.data.Method</a> by the <code>Method.valueOf(String)</code>
method. </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>
<code>restletMethods</code> </p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p> <em>None</em> </p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p> <strong>Consumer only</strong> Specify
one or more methods separated by commas (e.g. <code>restletMethods=post,put</code>)
to be serviced by a restlet consumer endpoint.  If both <code>restletMethod</code>
and <code>restletMethods</code> options are specified, the <code>restletMethod</code>
setting is ignored. </p></td></tr><
 tr><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>restletRealm=#</code><em>refName</em>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>null</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> The
bean ID of the Realm Map in the Camel Registry. </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>restletUriPatterns=#</code><em>refName</em>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <em>None</em>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Consumer
only</strong> Specify one ore more URI templates to be serviced by a restlet consumer
endpoint, using the <code>#</code> notation to reference a <code>List&lt;String&gt;</code>
in the Camel Registry.  If a URI pattern has been defined in the endpoint URI, both the URI
pattern defined in the endpoint and the <code>restletUriPatterns</code> option
will be honored. </p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenc
 eTd"><p> <code>throwExceptionOnFailure</code> (<strong>2.6 or
later</strong>)</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>
true </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>
*Producer only * Throws exception on a producer failure. </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>connectionTimeout</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> 300000 </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Since Camel 2.12.3</strong>
<strong>Producer only</strong> The Client will give up connection if the connection
is timeout, 0 for unlimited wait.</p></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p> <code>socketTimeout</code> </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> 300000 </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Since Camel 2.12.3</strong>
<strong>Producer only</strong> The Client socket receive timeout, 0 for unlimited
wa
 it.</p></td></tr></tbody></table></div>
-<h3 id="Restlet-ComponentOptions">Component Options</h3><p>The Restlet
component can be configured with the following options. Notice these are <strong>component</strong>
options and cannot be configured on the endpoint, see further below for an example.</p><div
class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1"
rowspan="1" class="confluenceTh"><p> Name </p></th><th colspan="1"
rowspan="1" class="confluenceTh"><p> Default Value </p></th><th colspan="1"
rowspan="1" class="confluenceTh"><p> Description </p></th></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>controllerDaemon</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>true</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel
2.10:</strong> Indicates if the controller thread should be a daemon (not blocking JVM
exit). </p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p>
<code>controllerSleepTimeMs</code> </p></td
 ><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>100</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel
2.10:</strong> Time for the controller thread to sleep between each control. </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>inboundBufferSize</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>8192</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel
2.10:</strong> The size of the buffer when reading messages. </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>minThreads</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>1</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel
2.10:</strong>  Minimum threads waiting to service requests. </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>maxThreads</code>
</p></td><td colspan="1" rowspan="1" class="conflu
 enceTd"><p> <code>10</code> </p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p> <strong>Camel 2.10:</strong> Maximum
threads that will service requests. </p></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p> <code>maxConnectionsPerHost</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>-1</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel
2.10:</strong> Maximum number of concurrent connections per host (IP address). </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>maxTotalConnections</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>-1</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel
2.10:</strong> Maximum number of concurrent connections in total. </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>outboundBufferSize</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>
 8192</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>
<strong>Camel 2.10:</strong> The size of the buffer when writing messages. </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>persistingConnections</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>true</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel
2.10:</strong> Indicates if connections should be kept alive after a call. </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>pipeliningConnections</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>false</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel
2.10:</strong> Indicates if pipelining connections are supported. </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>threadMaxIdleTimeMs</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>60000</cod
 e> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>
<strong>Camel 2.10:</strong>  Time for an idle thread to wait for an operation
before being collected. </p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p> <code>useForwardedForHeader</code> </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>false</code> </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel 2.10:</strong>
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.</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>reuseAddress</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>true</code>
</p></td><td colspan="
 1" rowspan="1" class="confluenceTd"><p> <strong>Camel 2.10.5/2.11.1:</strong>
Enable/disable the SO_REUSEADDR socket option. See java.io.ServerSocket#reuseAddress property
for additional details. </p></td></tr></tbody></table></div>
-<h3 id="Restlet-MessageHeaders">Message Headers</h3><div class="confluenceTableSmall">
+</div></div><p>Restlet promotes decoupling of protocol and application
concerns. The reference implementation of <a shape="rect" class="external-link" href="http://www.noelios.com/products/restlet-engine"
rel="nofollow">Restlet Engine</a> supports a number of protocols. However, we have
tested the HTTP protocol only. The default port is port 80. We do not automatically switch
default port based on the protocol yet.</p><p>You can append query options to
the URI in the following format, <code>?option=value&amp;option=value&amp;...</code></p><h3
id="Restlet-Options">Options</h3><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th
colspan="1" rowspan="1" class="confluenceTh"><p>Name</p></th><th colspan="1"
rowspan="1" class="confluenceTh"><p>Default Value</p></th><th colspan="1"
rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>headerFilterStrategy=#</code><em>refName</em></p></td><td
colspan="1" r
 owspan="1" class="confluenceTd"><p>An instance of <code>RestletHeaderFilterStrategy</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Use the <code>#</code>
notation (<code>headerFilterStrategy=#</code><em>refName</em>) to
reference a header filter strategy in the Camel Registry. The strategy will be plugged into
the restlet binding if it is <code>HeaderFilterStrategyAware</code>.</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>restletBinding=#</code><em>refName</em></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>An instance of <code>DefaultRestletBinding</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>The bean ID of a <code>RestletBinding</code>
object in the Camel Registry.</p></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p><code>restletMethod</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>GET</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>On 
 a producer endpoint, specifies the request method to use. On a consumer endpoint, specifies
that the endpoint consumes only <code>restletMethod</code> requests. The string
value is converted to <a shape="rect" class="external-link" href="http://www.restlet.org/documentation/1.1/api/org/restlet/data/Method.html"
rel="nofollow">org.restlet.data.Method</a> by the <code>Method.valueOf(String)</code>
method.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>restletMethods</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><em>None</em></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Consumer only</strong>
Specify one or more methods separated by commas (e.g. <code>restletMethods=post,put</code>)
to be serviced by a restlet consumer endpoint. If both <code>restletMethod</code>
and <code>restletMethods</code> options are specified, the <code>restletMethod</code>
setting is ignored.</p></td></tr><tr><td colspan="1" rowspan="1"
cla
 ss="confluenceTd"><p><code>restletRealm=#</code><em>refName</em></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>The bean ID of the Realm Map in the
Camel Registry.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>restletUriPatterns=#</code><em>refName</em></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><em>None</em></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Consumer only</strong>
Specify one ore more URI templates to be serviced by a restlet consumer endpoint, using the
<code>#</code> notation to reference a <code>List&lt;String&gt;</code>
in the Camel Registry. If a URI pattern has been defined in the endpoint URI, both the URI
pattern defined in the endpoint and the <code>restletUriPatterns</code> option
will be honored.</p></td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>throwExceptionOnFailure</code>
(<
 strong>2.6 or later</strong>)</p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p>true</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>*Producer
only * Throws exception on a producer failure.</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>connectionTimeout</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>300000</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Since Camel 2.12.3</strong>
<strong>Producer only</strong> The Client will give up connection if the connection
is timeout, 0 for unlimited wait.</p></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p><code>socketTimeout</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>300000</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Since Camel 2.12.3</strong>
<strong>Producer only</strong> The Client socket receive timeout, 0 for unlimited
wait.</p></td></tr></tbody></table></div><h3 id="Restlet-Compon
 entOptions">Component Options</h3><p>The Restlet component can be configured
with the following options. Notice these are <strong>component</strong> options
and cannot be configured on the endpoint, see further below for an example.</p><div
class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1"
rowspan="1" class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1"
class="confluenceTh"><p>Default Value</p></th><th colspan="1" rowspan="1"
class="confluenceTh"><p>Description</p></th></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>controllerDaemon</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>true</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.10:</strong>
Indicates if the controller thread should be a daemon (not blocking JVM exit).</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>controllerSleepTimeMs</code></p></td><td
colspan="1" rowspan="1" class="
 confluenceTd"><p><code>100</code></p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p><strong>Camel 2.10:</strong> Time
for the controller thread to sleep between each control.</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>inboundBufferSize</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>8192</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.10:</strong>
The size of the buffer when reading messages.</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>minThreads</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>1</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.10:</strong>
Minimum threads waiting to service requests.</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>maxThreads</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>10</code></p></td><td
colspan="1" rows
 pan="1" class="confluenceTd"><p><strong>Camel 2.10:</strong> Maximum
threads that will service requests.</p></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p><code>maxConnectionsPerHost</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>-1</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.10:</strong>
Maximum number of concurrent connections per host (IP address).</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>maxTotalConnections</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>-1</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.10:</strong>
Maximum number of concurrent connections in total.</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>outboundBufferSize</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>8192</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><s
 trong>Camel 2.10:</strong> The size of the buffer when writing messages.</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>persistingConnections</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>true</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.10:</strong>
Indicates if connections should be kept alive after a call.</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>pipeliningConnections</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.10:</strong>
Indicates if pipelining connections are supported.</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>threadMaxIdleTimeMs</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>60000</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.10:</strong>

 Time for an idle thread to wait for an operation before being collected.</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>useForwardedForHeader</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.10:</strong>
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.</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>reuseAddress</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>true</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><strong>Camel 2.10.5/2.11.1:</strong>
Enable/disable the SO_REUSEA
 DDR socket option. See java.io.ServerSocket#reuseAddress property for additional details.</p></td></tr></tbody></table></div><h3
id="Restlet-MessageHeaders">Message Headers</h3><div class="confluenceTableSmall">
 <table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1"
class="confluenceTh"><p> Name </p></th><th colspan="1" rowspan="1"
class="confluenceTh"><p> Type </p></th><th colspan="1" rowspan="1"
class="confluenceTh"><p> Description </p></th></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>Content-Type</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>String</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> Specifies
the content type, which can be set on the OUT message by the application/processor.  The value
is the <code>content-type</code> 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.&#160;&#160; Otherwise, it is defaulted
to "application/x-www-form-urlencoded'.  Prio
 r to release 2.3, it is not possible to change the request content type default. </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>CamelAcceptContentType</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>String</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Since
Camel 2.9.3, 2.10.0:</strong> The HTTP Accept request header.  </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>CamelHttpMethod</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>String</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> The
HTTP request method.  This is set in the IN message header. </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>CamelHttpQuery</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>String</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> The
query string of the request URI. 
  It is set on the IN message by <code>DefaultRestletBinding</code> when the restlet
component receives a request. </p></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p> <code>CamelHttpResponseCode</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>String</code>
or <code>Integer</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>
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. </p></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p> <code>CamelHttpUri</code> </p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>String</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> The
HTTP request URI.  This is set in the IN message header. </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>CamelRestle
 tLogin</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>
<code>String</code> </p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>
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. </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>CamelRestletPassword</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>String</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> 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. </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>CamelRestletRequest</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>Request</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel
2.8:</strong> The <code>org.re
 stlet.Request</code> object which holds all request details. </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>CamelRestletResponse</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>Response</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel
2.8:</strong> The <code>org.restlet.Response</code> object. You can use
this to create responses using the API from Restlet. See examples below. </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>org.restlet.*</code>
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p>&#160;</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> Attributes of a Restlet message
that get propagated to Camel IN headers. </p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>cache-control</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p> <code>String</code>
or <code>List&lt;CacheDirective&gt;</code> </p>
 </td><td colspan="1" rowspan="1" class="confluenceTd"><p> <strong>Camel
2.11:</strong> User can set the cache-control with the String value or the List of CacheDirective
of Restlet from the camel message header. </p></td></tr></tbody></table>
 </div><h3 id="Restlet-MessageBody">Message Body</h3><p>Camel will
store the restlet response from the external server on the OUT body. All headers from the
IN message will be copied to the OUT message, so that headers are preserved during routing.</p><h3
id="Restlet-Samples">Samples</h3><h4 id="Restlet-RestletEndpointwithAuthentication">Restlet
Endpoint with Authentication</h4><p>The following route starts a <code>restlet</code>
consumer endpoint that listens for <code>POST</code> requests on <a shape="rect"
class="external-link" href="http://localhost:8080" rel="nofollow">http://localhost:8080</a>.
The processor creates a response that echoes the request body and the value of the <code>id</code>
header.</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
 <script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
@@ -203,7 +201,7 @@ from(&quot;restlet:http://localhost:&quo
     });
 ]]></script>
 </div></div><h4 id="Restlet-Configuringmaxthreadsoncomponent">Configuring
max threads on component</h4><p>To configure the max threads options you must
do this on the component, such as:</p><div class="code panel pdl" style="border-width:
1px;"><div class="codeContent panelContent pdl">
-<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[&lt;bean
id=&quot;restlet&quot; class=&quot;org.apache.camel.component.RestletComponent&quot;&gt;
+<script class="theme: Default; brush: xml; gutter: false" type="syntaxhighlighter"><![CDATA[&lt;bean
id=&quot;restlet&quot; class=&quot;org.apache.camel.component.restlet.RestletComponent&quot;&gt;
   &lt;property name=&quot;maxThreads&quot; value=&quot;100&quot;/&gt;
 &lt;/bean&gt;
 ]]></script>



Mime
View raw message