Restlet has been created by William Tam (Jan 01, 2009).

Content:

Restlet Component

The Restlet component provides Restlet based endpoints for consuming and producing RESTful resources.

URI format

restlet:restletUrl[?options]

Format of restletUrl:

protocol://hostname[:port][/resourcePattern]

Restlet promotes decoupling of protocol and application concerns. The reference implementation of Restlet Engine 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.

Options

Name Default Value Description
restletMethod GET The method to be used in the request for producer. For consumer, the Restlet Endpoint only consumes requests made by restletMethod. The string value is converted to org.restlet.data.Method by the Method.valueOf(String) method.
restletBindingRef null The name to lookup the RestletBinding object in the Camel Registry.
restletRealmRef null The name to lookup the Realm Map in the Camel Registry.

Message Headers

Name Type Description
camel.restlet.auth.login String Login name for basic authentication. It is set on the IN message by application and get filtered before Restlet Request header by Camel.
camel.restlet.auth.password String Password name for basic authentication. It is set on the IN message by application and get filtered before Restlet Request header by Camel.
org.restlet.* String, Map Attributes of Restlet message get propagated to Camel IN headers.

Message Body

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 headers is preserved during routing.

Reply via email to