org.openmdx.compatibility.kernel.url.protocol.xri
Class Handler_1

java.lang.Object
  extended by java.net.URLStreamHandler
      extended by org.openmdx.compatibility.kernel.url.protocol.xri.Handler_1
Direct Known Subclasses:
Handler

public abstract class Handler_1
extends URLStreamHandler

To handle version 1 XRIs.


Constructor Summary
protected Handler_1()
          Constructor
 
Method Summary
protected abstract  MalformedURLException newMalformedURLException(URL url)
          Unsupported authority exception
protected  URLConnection openConnection(URL url)
           
 
Methods inherited from class java.net.URLStreamHandler
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, 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_1

protected Handler_1()
Constructor

Method Detail

openConnection

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

newMalformedURLException

protected abstract MalformedURLException newMalformedURLException(URL url)
Unsupported authority exception

Parameters:
url - an URL which can't be handled by this handler
Returns:
a MalformedURLException for the given URL.


This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.