net.dpml.transit.link
Class Handler

java.lang.Object
  extended byjava.net.URLStreamHandler
      extended bynet.dpml.transit.link.Handler

public class Handler
extends URLStreamHandler

The link URL protocol handler. The link: protocol is similar to the symlink concept in Linux/Unix, where something that looks like a file points to another file. In this case, the link URL points to another URL. The resolution of the link translation is picked up from managed Transit server(s).

Version:
1.0.1
Author:
Digital Product Meta Library

Constructor Summary
Handler()
          Creation of a new transit link: protocol handler.
 
Method Summary
protected  URLConnection openConnection(URL url)
          Opens a connection to the specified URL.
 
Methods inherited from class java.net.URLStreamHandler
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, 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 transit link: protocol handler.

Method Detail

openConnection

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

Parameters:
url - A URL to open a connection to.
Returns:
The established connection.
Throws:
IOException - If a connection failure occurs.