Package org.jboss.vfs.protocol
Class AbstractLocalURLStreamHandler
- java.lang.Object
-
- java.net.URLStreamHandler
-
- org.jboss.vfs.protocol.AbstractLocalURLStreamHandler
-
- Direct Known Subclasses:
FileURLStreamHandler,VirtualFileURLStreamHandler
public abstract class AbstractLocalURLStreamHandler extends URLStreamHandler
Abstract URLStreamHandler that can be used as a base for other URLStreamHandlers that require the URL to be local.- Version:
- $Revision$
- Author:
- John Bailey
-
-
Constructor Summary
Constructors Constructor Description AbstractLocalURLStreamHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidensureLocal(URL url)protected booleanhostsEqual(URL url1, URL url2)protected URLConnectionopenConnection(URL u, Proxy p)-
Methods inherited from class java.net.URLStreamHandler
equals, getDefaultPort, getHostAddress, hashCode, openConnection, parseURL, sameFile, setURL, setURL, toExternalForm
-
-
-
-
Method Detail
-
openConnection
protected URLConnection openConnection(URL u, Proxy p) throws IOException
- Overrides:
openConnectionin classURLStreamHandler- Throws:
IOException
-
hostsEqual
protected boolean hostsEqual(URL url1, URL url2)
- Overrides:
hostsEqualin classURLStreamHandler
-
ensureLocal
protected void ensureLocal(URL url) throws IOException
- Throws:
IOException
-
-