com.iplanet.trustbase.xurl
Class XURL

java.lang.Object
  |
  +--com.iplanet.trustbase.xurl.XURL

public class XURL
extends java.lang.Object

extended URL behaviour. XURL aggregates a regular URL, and uses the XURLStreamHandlerFactory to create URLConnections, delegating to the javasoft URLStreamHandlers if the XURLStreamHandlerFactory doesn't have a registered XURLStreamHandler for the appropriate protocol


Constructor Summary
XURL(java.lang.String urlStr)
          construct an XURL from a string representing a URL
 
Method Summary
 java.net.URLConnection openConnection()
          Attempts to open a connection to the url pointed to by the supplied url string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XURL

public XURL(java.lang.String urlStr)
     throws java.net.MalformedURLException
construct an XURL from a string representing a URL
Method Detail

openConnection

public java.net.URLConnection openConnection()
                                      throws java.io.IOException
Attempts to open a connection to the url pointed to by the supplied url string.
Tries the XURLStreamHandlerFactory first, and if that has no XURLStreamHandler for the requested protocol, tries the javasoft URL.openConnection() method on the aggregated url built from the supplied url string supplied in the constructor.
Returns:
URLConnection an object connected to the url
Throws:
java.io.IOException - occurs if there is an error in creating an URLConnection object from the supplied url string specified in the constructor.