net.dpml.transit.registry
Class Handler
java.lang.Object
java.net.URLStreamHandler
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Handler
public Handler()
- Creation of a new registry protocol handler.
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.