net.dpml.transit.local
Class Handler

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

public class Handler
extends URLStreamHandler

The local protocol references a local resource under ${dpml.prefs}. Local resources are located using the artifact protocol uri structure with a direct mapping to ${dpml.prefs}/[group]/[type]s/[name].[type].

Version:
1.0.3
Author:
Digital Product Meta Library

Constructor Summary
Handler()
          Creation of a new local 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, 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 local protocol handler.

Method Detail

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.