Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-7260

Documentation Bug - HTTP4 Component Configuration

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 2.13.0
    • camel-http4, documentation
    • None
    • Unknown

    Description

      There is a bug in the HTTP4 component documentation at http://camel.apache.org/http4.

      Under "Setting up SSL for HTTP Client", the "Programmatic configuration of the component" example shows setting the SSLContextParameters of the http4 component instead of the correct https4 component.

      It might also be helpful to give an example of using the SSLContextParameters to force https4 to use a specific protocol, such as SSLv3. Notably, the underlying Apache HttpClient 4.x does not respect the Java environment variable "https.protocols", the only way I was able to successfully force SSLv3 in my case was by configuring the SSLContextParameters of the https4 component.

      My groovy spring DSL looks like this:

      sslContextParams(SSLContextParameters) {
      secureSocketProtocols = new SecureSocketProtocolsParameters().with

      { secureSocketProtocol.add('SSLv3'); it }

      secureSocketProtocol = "SSLv3"
      }

      https4(org.apache.camel.component.http4.HttpComponent)

      { connectionsPerRoute = 50 sslContextParameters = ref('sslContextParams') }

      Note that setting SSLContextParameters.secureSocketProtocol alone is not sufficient, secureSocketProtocols also needs to be set (and I had hand-instantiate it as the list is not easily constructable via Spring - for me at least).

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            stephen.swensen@gmail.com Stephen Swensen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: