Package org.jboss.vfs.protocol
Class AbstractLocalURLStreamHandler
java.lang.Object
java.net.URLStreamHandler
org.jboss.vfs.protocol.AbstractLocalURLStreamHandler
- Direct Known Subclasses:
FileURLStreamHandler
,VirtualFileURLStreamHandler
Abstract URLStreamHandler that can be used as a base for other URLStreamHandlers that
require the URL to be local.
- Version:
- $Revision$
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
ensureLocal
(URL url) protected boolean
hostsEqual
(URL url1, URL url2) protected URLConnection
openConnection
(URL u, Proxy p) private static String
Methods inherited from class java.net.URLStreamHandler
equals, getDefaultPort, getHostAddress, hashCode, openConnection, parseURL, sameFile, setURL, setURL, toExternalForm
-
Field Details
-
locals
-
-
Constructor Details
-
AbstractLocalURLStreamHandler
public AbstractLocalURLStreamHandler()
-
-
Method Details
-
toLower
-
openConnection
- Overrides:
openConnection
in classURLStreamHandler
- Throws:
IOException
-
hostsEqual
- Overrides:
hostsEqual
in classURLStreamHandler
-
ensureLocal
- Throws:
IOException
-