net.dpml.transit.registry
Class Handler

java.lang.Object
  extended by java.net.URLStreamHandler
      extended by net.dpml.transit.registry.Handler

public class Handler
extends URLStreamHandler

The registry protocol references an remote resource published under an RMI Registry.

Version:
1.1.0
Author:
Digital Product Meta Library

Constructor Summary
Handler()
          Creation of a new registry protocol handler.
 
Method Summary
protected  int getDefaultPort()
          Returns the default registry port.
protected  URLConnection openConnection(URL url)
          Opens a connection to the specified URL.
 
Methods inherited from class java.net.URLStreamHandler
equals, 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

public Handler()
Creation of a new registry protocol handler.

Method Detail

getDefaultPort

protected int getDefaultPort()
Returns the default registry port.

Overrides:
getDefaultPort in class URLStreamHandler
Returns:
the registry default port

openConnection

protected URLConnection openConnection(URL url)
                                throws IOException
Opens a connection to the specified URL.

Specified by:
openConnection in class URLStreamHandler
Parameters:
url - A URL to open a connection to.
Returns:
The established connection.
Throws:
IOException - If a connection failure occurs.