|
Oracle Application Server 10g HTTPClient API Reference 10g Release 2(10.1.2) B14020-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
java.net.URLStreamHandler
HTTPClient.shttp.Handler
This class implements a URLStreamHandler for shttp 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 |
public Handler() throws ProtocolNotSuppException
Method Detail |
public java.net.URLConnection openConnection(java.net.URL url) throws java.io.IOException, ProtocolNotSuppException
java.net.URLStreamHandler
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.
url
- the URL that this connects to.URLConnection
object for the URL
.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 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |