Oracle Application Server 10g HTTPClient API Reference
10g Release 2(10.1.2)

B14020-01


HTTPClient.https
Class Handler

java.lang.Object
  extended byjava.net.URLStreamHandler
      extended byHTTPClient.https.Handler


public class Handler
extends java.net.URLStreamHandler

This class implements a URLStreamHandler for https URLs. With this you can use the HTTPClient package as a replacement for the JDKs client. To do so define the property java.protocol.handler.pkgs=HTTPClient .


Constructor Summary
Handler()

Method Summary
java.net.URLConnection openConnection(java.net.URL url)
Opens a connection to the object referenced by the URL argument.

Methods inherited from class java.net.URLStreamHandler
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, parseURL, sameFile, setURL, setURL, toExternalForm

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

Handler

public Handler()
        throws ProtocolNotSuppException

Method Detail

openConnection

public java.net.URLConnection openConnection(java.net.URL url)
                                      throws java.io.IOException,
                                             ProtocolNotSuppException
Description copied from class: java.net.URLStreamHandler
Opens a connection to the object referenced by the URL argument. This method should be overridden by a subclass.

If for the handler's protocol (such as HTTP or JAR), there exists a public, specialized URLConnection subclass belonging to one of the following packages or one of their subpackages: java.lang, java.io, java.util, java.net, the connection returned will be of that subclass. For example, for HTTP an HttpURLConnection will be returned, and for JAR a JarURLConnection will be returned.

Parameters:
url - the URL that this connects to.
Returns:
a URLConnection object for the URL.
Throws:
java.io.IOException - if an I/O error occurs while opening the connection.
ProtocolNotSuppException

Oracle Application Server 10g HTTPClient API Reference
10g Release 2(10.1.2)

B14020-01


Copyright © 2001, 2004, Oracle. All rights reserved.