Versions Compared

Key

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

...

Name

Default Value

Description

httpClient.XXX

null

Setting options on the HttpClientParams. For instance httpClient.SoTimeoutsoTimeout(5000) will set the SO_TIMEOUT to 5 seconds.

...

  • response code is between 100..299 then Camel regard it as a success response
  • response code is between 300..399 then Camel regard it as a redirection was returned and will throw a HttpOperationFailedException with the information
  • response code is 400+ then Camel regard it as a external server failure and will throw a HttpOperationFailedException with the information

HttpOperationFailedException

This exception contains the following information

  • the http status code
  • the http status line (text of the status code)
  • redirect location if server returned a redirect
  • responseBody as a java.io.InputStream if server provided a body as response

Calling using GET or POST

...