[xep-support] Is XEP using HttpsURLConnection when resolving images thru https ?

Alexander Peshkov peshkov at renderx.com
Thu Mar 2 04:05:51 PST 2006


Hello Christian,

XEP relies on standard Java means for URL processing. This means that
if necessary you can create custom protocol handler, put your own code
inside and register it in Java. I haven't tested it but I think in
your case it will make sense to extend HttpsURLConnection and make
your own class that encapsulates proper initialization.

Best regards,
Alexander Peshkov                             mailto:peshkov at renderx.com
RenderX

CK> Hello

CK> I have an environment where images are located on a application server which
CK> can be accessed by https and a client certificate only.
CK> e.g. url(https://host:port/...)

CK> In my own code I connect in this way:

CK> HttpsURLConnection uc = (HttpsURLConnection)url.openConnection();
CK> uc.setSSLSocketFactory( sslContext.getSocketFactory() );
CK> uc.connect();
CK> uc.getInputStream();
CK> ...

CK> Where sslContext is an instance of javax.net.ssl.SSLContex initializing the
CK> neccessary providers, keymanagers, keystores, etc.

CK> Is it possible to set the SSLSocketFactory anywhere in xep ?

CK> Thanks in advance
CK> Christian Kriebel


CK> ~~~~~~~~~~~~~~~~~~~~~
CK> Dr. Christian Kriebel - CTO
CK> Assentis Technologies AG
CK> Lettenstr. 7, 6343 Rotkreuz, Switzerland

CK> mailto:christian.kriebel at assentis.com
CK> Mobile: +41-79-233 19 74
CK> Phone : +41-41-790 91 92
CK> ~~~~~~~~~~~~~~~~~~~~~  


CK> -------------------
CK> (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
CK> in the body of the message to majordomo at renderx.com from the address
CK> you are subscribed from.
CK> (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html


-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html



More information about the Xep-support mailing list