LibraryToggle FramesPrintFeedback


HTTP4 — provides endpoints for consuming external HTTP resources using Apache HttpClient 4.x

HttpEndpoint options

Table 5.4 lists the options for an HTTP4 endpoint.

Table 5.4. HTTP4 endpoint options

x509HostnameVerifierBrowserCompatHostnameVerifier [a] Specifies an X509HostnameVerifier[a] instance in the registry.
throwExceptionOnFailuretrueSpecifies if you want to disable throwing the HttpOperationFailedException in case of failed responses from the remote server. This allows you to get all responses regardless of the HTTP status code.
bridgeEndpointfalseSpecifies if the HttpProducer ignores the Exchange.HTTP_URI header, and use the endpoint's URI for request. If the option is true, HttpProducer and CamelServlet will skip the gzip processing if the content-encoding is gzip.
disableStreamCachefalseSpecifies if the DefaultHttpBinding copies the request input stream directly into the message body. The default setting is to copy the request input stream into a stream cache and into the message body to support reading the message twice.
httpBindingnullSpecifies a reference to a HttpBinding[b] in the registry.
httpClientConfigurernullSpecifies a reference to a HttpClientConfigurer [b] in the registry.
httpClient.XXX Specifies options to set on the BasicHttpParams. For instance, httpClient.soTimeout=5000 will set the SO_TIMEOUT to 5 seconds.
clientConnectionManagernullSpecifies a custom ClientConnectionManager [c].
transferExceptionfalseSpecifies if a producer will throw the received exception if the received exception was serialized in the response as a application/x-java-serialized-object content type.
maxTotalConnections200Specifies the maximum number of connections.
connectionsPerRoute20Specifies the maximum number of connections per route.

[a] In the package org.apache.http.conn.ssl.

[b] In the org.apache.camel.component.http package.

[c] In the org.apache.http.conn package.

Comments powered by Disqus