AHC

AHC

Scheme: ahc
Name Kind Type Required Deprecated Default Value Enum Values Description
httpUri path java.net.URI true false The URI to use such as http://hostname:port/path
clientConfig parameter com.ning.http.client.AsyncHttpClientConfig false To configure the AsyncHttpClient to use a custom com.ning.http.client.AsyncHttpClientConfig instance.
bridgeEndpoint parameter boolean false 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 throwExceptionOnFailure to be false to let the AhcProducer send all the fault response back.
throwExceptionOnFailure parameter boolean false 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.
transferException parameter boolean false If enabled and an Exchange failed processing on the consumer side, and if the caused Exception was send 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.
sslContextParameters parameter org.apache.camel.util.jsse.SSLContextParameters false Reference to a org.apache.camel.util.jsse.SSLContextParameters 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 parameter int false 4096 The initial in-memory buffer size used when transferring data between Camel and AHC Client.
headerFilterStrategy parameter org.apache.camel.spi.HeaderFilterStrategy false To use a custom HeaderFilterStrategy to filter header to and from Camel message.
binding parameter org.apache.camel.component.ahc.AhcBinding false To use a custom {@link AhcBinding} which allows to control how to bind between AHC and Camel.
exchangePattern parameter org.apache.camel.ExchangePattern false InOnly InOnly
RobustInOnly
InOut
InOptionalOut
OutOnly
RobustOutOnly
OutIn
OutOptionalIn
Sets the default exchange pattern when creating an exchange
synchronous parameter boolean false false Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported).