Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 36BC310D23 for ; Sat, 1 Mar 2014 06:57:26 +0000 (UTC) Received: (qmail 67604 invoked by uid 500); 1 Mar 2014 06:57:25 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 67470 invoked by uid 500); 1 Mar 2014 06:57:24 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 67305 invoked by uid 99); 1 Mar 2014 06:57:21 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Mar 2014 06:57:21 +0000 Date: Sat, 1 Mar 2014 06:57:21 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CAMEL-7260) Documentation Bug - HTTP4 Component Configuration MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-7260?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen updated CAMEL-7260: ------------------------------- Priority: Trivial (was: Minor) > Documentation Bug - HTTP4 Component Configuration > ------------------------------------------------- > > Key: CAMEL-7260 > URL: https://issues.apache.org/jira/browse/CAMEL-7260 > Project: Camel > Issue Type: Task > Components: camel-http4, documentation > Reporter: Stephen Swensen > Priority: Trivial > > 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). -- This message was sent by Atlassian JIRA (v6.1.5#6160)