URI format and Options - 6.3

Talend ESB Mediation Developer Guide

EnrichVersion
6.3
EnrichProdName
Talend Data Fabric
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
task
Design and Development
EnrichPlatform
Talend ESB
ahc:http://hostname[:port][/resourceUri][?options]
ahc:https://hostname[:port][/resourceUri][?options]

This will by default use port 80 for HTTP and 443 for HTTPS.

You can append query options to the URI in the following format, ?option=value&option=value&..., where option can be:

Table 1. AhcEndpoint Options

Option

Value

Behavior

throwExceptionOnFailure

true

Option to disable throwing the AhcOperationFailedException in case of failed responses from the remote server. This allows you to get all responses regardless of the HTTP status code.

bridgeEndpoint

false

The entire list of entries from the feed is set:

If the option is true, then the Exchange.HTTP_URI header is ignored, and use the endpoint's URI for request. You may also set the throwExcpetionOnFailure to be false to let the AhcProducer send all the fault response back.

transferException

false

If enabled and an exchange failed processing on the consumer side, and if the caused exception was sent back serialized in the response as a application/x-java-serialized-object content type (for example using Jetty or SERVLET Camel components). On the producer side the exception will be deserialized and thrown as is, instead of the AhcOperationFailedException. The caused exception is required to be serialized.

client

null

To use a custom com.ning.http.client.AsyncHttpClient.

clientConfig

null

To configure the AsyncHttpClient to use a custom com.ning.http.client.AsyncHttpClientConfig instance. This instance replaces any instance configured at the component level.

clientConfig.x

null

To configure additional properties of the com.ning.http.client.AsyncHttpClientConfig instance used by the endpoint. Note that configuration options set using this parameter will be merged with those set using the clientConfig parameter or the instance set at the component level with properties set using this parameter taking priority.

clientConfig.realm.x

null

Starting with Camel 2.11, to configure realm properties of the com.ning.http.client.AsyncHttpClientConfig. The options can be used are the options from com.ning.http.client.Realm.RealmBuilder.. For example, to set scheme, you can configure clientConfig.realm.scheme=DIGEST.

binding

null

To use a custom org.apache.camel.component.ahc.AhcBinding.

sslContextParameters

null

Starting with Camel 2.9, reference to a org.apache.camel.util.jsse.SSLContext

Parameters in the Registry.  This reference overrides any configured SSLContextParameters at the component level.  See Using the JSSE Configuration Utility.  Note that configuring this option will override any SSL/TLS configuration options provided through the clientConfig option at the endpoint or component level.

bufferSize

4096

Starting with Camel 2.10.3, the initial in-memory buffer size used when transferring data between Camel and AHC Client.


Table 2. AhcComponent Options

Option

Value

Behavior

client

null

To use a custom com.ning.http.client.AsyncHttpClient.

clientConfig

null

To configure the AsyncHttpClient to use a custom com.ning.http.client.AsyncHttpClientConfig.

binding

null

To use a custom org.apache.camel.component.ahc.AhcBinding.

sslContextParameters

null

Starting with Camel 2.9, to configure custom SSL/TLS configuration options at the component level. See Using the JSSE Configuration Utility for more details. Note that configuring this option will override any SSL/TLS configuration options provided through the clientConfig option at the endpoint or component level.