I just checked the code of HttpConduit, it will check if the address start with https to decide to use the Tls parameter.
Here is the code snippet for it.

 static HttpURLConnectionFactory getConnectionFactory(
        HTTPConduit configuredConduit,
        String address
    ) {
        HttpURLConnectionFactory fac = null;
        boolean useHttps = false;

        if (address == null) {
            address = configuredConduit.getAddress();
        }
        if (address != null
&& address.startsWith(HttpsURLConnectionFactory.HTTPS_URL_PROTOCOL_ID + ":/")) {
            useHttps = true;
        }
        if (address == null) {
            useHttps = configuredConduit.getTlsClientParameters() != null;
        }
        if (useHttps) {
TLSClientParameters params = configuredConduit.getTlsClientParameters();
            if (params == null) {
                params = new TLSClientParameters(); //use defaults
            }
            fac = new HttpsURLConnectionFactory(params);
        } else {
            fac = new HttpURLConnectionFactoryImpl();
        }
        return fac;
    }


On 3/1/11 6:42 PM, Christian Müller wrote:
Hello Claus!

I think the FAQ entry is a good idea and I would like to do it.
But before, I would like to get a confirmation about our adoption from
one of the CXF experts (Willem, Daniel, ...).

Christian


--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
         http://jnn.javaeye.com (Chinese)
Twitter: willemjiang

Reply via email to