httpClient
The httpClient sends the request of an exchange to a Web Server using the HTTP protocol. Usually it will be globally used inside the transport. However, it is also possible to use it inside a proxy to give the proxy an individual configuration for its outgoing HTTP connection that is different from the global configuration in the transport.
Can be used in
transport, serviceProxy, soapProxy
Syntax
<httpClient failOverOn5XX="[boolean]" keepAliveTimeout="[long]" />
Listing 1: httpClient Syntax
Sample
<beans> <transport coreThreadPoolSize="20"> <ruleMatching /> <dispatching /> <userFeature /> <httpClient /> </transport> </beans>
Listing 2: httpClient Example
Attributes
Name | Mandatory | Default | Description | Example |
---|---|---|---|---|
failOverOn5XX | no | no | Whether to retry again (possibly the next node, when load balancing is active) after a HTTP status code 500≤x<600 was received. | true |
keepAliveTimeout | no | 30000 | Time in milliseconds after which an open connection to the server is not reused. Be sure to set it to a smaller value than the KeepAlive directive on your server. | 13000 |