camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Mueller <>
Subject Re: Using HTTPS in camel-http when remote side has self-signed cert
Date Mon, 22 Feb 2010 21:05:19 GMT

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

    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);

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message