![]()
Configuring Your Application to use HTTP or HTTPS
To use the HTTP and HTTPS protocols, add the following to your application:
import ice.util.net.URLStreamHandlerFactory; URLStreamHandlerFactory.addStreamHandler( "http", "ice.net.HttpURLStreamHandler"); URLStreamHandlerFactory.addStreamHandler( "https", "ice.https.HttpsURLStreamHandler"); URL.setURLStreamHandlerFactory(new URLStreamHandlerFactory());Do this only once, before using any java.net packages. After adding this code, you can use the java.net.URL and java.net.HttpConnection classes normally.
The HTTPS protocol handler uses the ICEssl module to establish an SSL connection when the protocol of the URL is HTTPS. For more information on SSL, see ICEssl Module.
To use HTTP and HTTPS, ensure that the ib6http.jar and ib6https.jar files are on your classpath.
|
Copyright 2005. ICEsoft Technologies, Inc. http://www.icesoft.com |