JBoss VFS 3.1.0.Final-redhat-2

org.jboss.vfs.protocol
Class AbstractLocalURLStreamHandler

java.lang.Object
  extended by java.net.URLStreamHandler
      extended by 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
AbstractLocalURLStreamHandler()
           
 
Method Summary
protected  void ensureLocal(URL url)
           
protected  boolean hostsEqual(URL url1, URL url2)
           
protected  URLConnection openConnection(URL u, Proxy p)
           
 
Methods inherited from class java.net.URLStreamHandler
equals, getDefaultPort, getHostAddress, hashCode, 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

AbstractLocalURLStreamHandler

public AbstractLocalURLStreamHandler()
Method Detail

openConnection

protected URLConnection openConnection(URL u,
                                       Proxy p)
                                throws IOException
Overrides:
openConnection in class URLStreamHandler
Throws:
IOException

hostsEqual

protected boolean hostsEqual(URL url1,
                             URL url2)
Overrides:
hostsEqual in class URLStreamHandler

ensureLocal

protected void ensureLocal(URL url)
                    throws IOException
Throws:
IOException

JBoss VFS 3.1.0.Final-redhat-2

Copyright © 2012 JBoss, A division of Red Hat, Inc. All Rights Reserved.