net.dpml.transit.local
Class Handler
java.lang.Object
java.net.URLStreamHandler
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.1.0
- Author:
- Digital Product Meta Library
Constructor Summary |
Handler()
Creation of a new local protocol handler. |
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 |
Handler
public Handler()
- Creation of a new local protocol handler.
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.