Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Name

Default Value

Description

throwExceptionOnFailure

true

Camel 2.0: Option to disable throwing the HttpOperationFailedException in case of failed responses from the remote server. This allows you to get all responses regardles of the HTTP status code.

bridgeEndpoint

false

Camel 2.1: If the option is true , HttpProducer will ignore the Exchange.HTTP_URI header, and use the endpoint's URI for request. You may also set the throwExcpetionOnFailure to be false to let the HttpProducer send all the fault response back.

httpBindingRef

null

Reference to a org.apache.camel.component.http.HttpBinding in the Registry.

username

null

Username for Basic HTTP/NTML Authentication.

password

null

Password for Basic HTTP/NTML Authentication.

domain

null

Camel 2.1: Domain for NTML Authentication. This option must be used to force NTML authentication.

proxyHost

null

The proxy host name * only for >= Camel 1.6.2 *.

proxyPort

null

The proxy port number * only for >= Camel 1.6.2 *.

proxyUsername

null

Username for proxy authentication * only for >= Camel 1.6.2 *.

proxyPassword

null

Password for proxy authentication * only for >= Camel 1.6.2 *.

httpClientConfigurerRef

null

Reference to a org.apache.camel.component.http.HttpClientConfigurer in the Registry.

httpClient.XXX

null

Camel 2.2 or older: Setting options on the HttpClientParams. For instance httpClient.soTimeout=5000 will set the SO_TIMEOUT to 5 seconds.

httpClient.XXX

null

Camel 2.3: Setting options on HttpParam on both HttpClient and HttpClientConnectionManager. For instance httpClient.soTimeout=5000 will set the SO_TIMEOUT to 5 seconds. Notice that the HttpClientConnectionManager is shared among all producers and consumers created by the same HttpComponent.

maxTotalConnections

200

Camel 2.3: Defines the maximum number of connections in total.

connectionsPerRoute

20

Camel 2.3: Defines the maximum number of connections per route.

Camel 2.3 or newer

In Camel 2.3 we upgraded to use Apache HTTP Client 4.0.1 which is a major upgrade over the older Client 3.1 release. A significant change is that the HTTPClient is using a shared HttpClientConnectionManager as one giant thread pool. By default its configured to allow 200 concurrent threads. That means you cannot use different options for the HttpClientConnectionManager. If you for some odd reason want that you can define a 2nd CamelHttpComponent and let it use a different configured HttpClientConnectionManager.

Message Headers

Camel 1.x

Name

Type

Description

HttpProducer.HTTP_URI

String

Camel 1.5.1: URI to call. Will override existing URI set directly on the endpoint. Is set on the In message.

HttpProducer.HTTP_RESPONSE_CODE

int

The HTTP response code from the external server. Is 200 for OK. Is set on the Out message.

HttpProducer.QUERY

String

URI parameters. Will override existing URI parameters set directly on the endpoint. Is set on the In message.

...