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 java.net.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 void
ensureLocal(java.net.URL url)
protected boolean
hostsEqual(java.net.URL url1, java.net.URL url2)
protected java.net.URLConnection
openConnection(java.net.URL u, java.net.Proxy p)
-
-
-
Method Detail
-
openConnection
protected java.net.URLConnection openConnection(java.net.URL u, java.net.Proxy p) throws java.io.IOException
- Overrides:
openConnection
in classjava.net.URLStreamHandler
- Throws:
java.io.IOException
-
hostsEqual
protected boolean hostsEqual(java.net.URL url1, java.net.URL url2)
- Overrides:
hostsEqual
in classjava.net.URLStreamHandler
-
ensureLocal
protected void ensureLocal(java.net.URL url) throws java.io.IOException
- Throws:
java.io.IOException
-
-