Creates a new instance of HttpUrlConnector/*,
DefaultConfiguration.LOGGER_RESOURCE_BUNDLE_NAME );*/
super(serviceUrl, environment);
hv = (HostnameVerifier)environment.get(
DefaultConfiguration.HOSTNAME_VERIFIER_PROPERTY_NAME);
if (hv == null)
hv = new SunOneBasicHostNameVerifier(serviceUrl.getHost());
//fetching any custom SSLSocketFactory passed through environment
ssf = (SSLSocketFactory)environment.get(
DefaultConfiguration.SSL_SOCKET_FACTORY);
//No custom SSLScoketFactory passed. So now fetch the X509 based managers
//to get the SSLSocketFactory configured using SSLContext
if (ssf == null) {
//fetching any trustmanagers passed through environment - default is
//SunOneBasicX509TrustManager
Object tmgr = environment.get(DefaultConfiguration.TRUST_MANAGER_PROPERTY_NAME);
if (tmgr instanceof X509TrustManager[])
tms = (X509TrustManager[])tmgr;
else if (tmgr instanceof X509TrustManager)
tms = new X509TrustManager[] { (X509TrustManager)tmgr };
else if (tmgr == null)
tms = new X509TrustManager[] { new SunOneBasicX509TrustManager(
serviceUrl, environment)};
//fetching any keymanagers passed through environment - no defaults
Object kmgr = environment.get(DefaultConfiguration.KEY_MANAGER_PROPERTY_NAME);
if (kmgr instanceof X509KeyManager[])
kms = (X509KeyManager[])kmgr;
else if (kmgr instanceof X509KeyManager)
kms = new X509KeyManager[] { (X509KeyManager)kmgr };
}
initialize();