Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 28055 invoked from network); 22 Feb 2010 21:05:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Feb 2010 21:05:49 -0000 Received: (qmail 55379 invoked by uid 500); 22 Feb 2010 21:05:49 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 55354 invoked by uid 500); 22 Feb 2010 21:05:49 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 55344 invoked by uid 99); 22 Feb 2010 21:05:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Feb 2010 21:05:49 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Feb 2010 21:05:40 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1NjfSx-0006KY-QC for users@camel.apache.org; Mon, 22 Feb 2010 13:05:19 -0800 Message-ID: <27694404.post@talk.nabble.com> Date: Mon, 22 Feb 2010 13:05:19 -0800 (PST) From: Christian Mueller To: users@camel.apache.org Subject: Re: Using HTTPS in camel-http when remote side has self-signed cert In-Reply-To: <27689918.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: christian.mueller@gmail.com References: <2aeb7abd0910151512x22693ceex72ff15bcc3b3d08d@mail.gmail.com> <4AD93D8D.5000107@gmail.com> <27639063.post@talk.nabble.com> <27689918.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Yogesh, if you have a look on org.apache.commons.httpclient.protocol.Protocol, you will see, that registerProtocol stores the protocol in a HashMap. Using the same key "https" overrides the first registered protocol: public class Protocol { private static final Map PROTOCOLS = Collections.synchronizedMap(new HashMap()); public static void registerProtocol(String id, Protocol protocol) { if (id == null) { throw new IllegalArgumentException("id is null"); } if (protocol == null) { throw new IllegalArgumentException("protocol is null"); } PROTOCOLS.put(id, protocol); } } Regards, Christian -- View this message in context: http://old.nabble.com/Using-HTTPS-in-camel-http-when-remote-side-has-self-signed-cert-tp25916878p27694404.html Sent from the Camel - Users mailing list archive at Nabble.com.