BEA Systems, Inc.

weblogic.net.http
Class Handler

java.lang.Object
  extended by java.net.URLStreamHandler
      extended by weblogic.net.http.Handler

public class Handler
extends URLStreamHandler

Open an http input stream given a URL. See the way protocol handlers are found in java.net.URL for details.


Constructor Summary
Handler()
           
 
Method Summary
static void init()
           
protected  URLConnection openConnection(URL u)
           
protected  URLConnection openConnection(URL u, Proxy p)
           
protected  String toExternalForm(URL u)
          Overriding this method from javaq.net.URLStreamHandler so that we dont print the username:password from the part of the url.
 
Methods inherited from class java.net.URLStreamHandler
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, parseURL, sameFile, setURL, setURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Handler

public Handler()
Method Detail

openConnection

protected URLConnection openConnection(URL u)
                                throws IOException
Specified by:
openConnection in class URLStreamHandler
Throws:
IOException

openConnection

protected URLConnection openConnection(URL u,
                                       Proxy p)
                                throws IOException
Overrides:
openConnection in class URLStreamHandler
Throws:
IOException

init

public static void init()

toExternalForm

protected String toExternalForm(URL u)
Overriding this method from javaq.net.URLStreamHandler so that we dont print the username:password from the part of the url. http://[@]host[:port]/?query#ref will be printed as http://host[:port]/?query#ref

Overrides:
toExternalForm in class URLStreamHandler

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs100
Copyright 2006 BEA Systems Inc.