org.jboss.virtual.protocol
Class AbstractVFSHandler

java.lang.Object
  extended by java.net.URLStreamHandler
      extended by org.jboss.virtual.protocol.AbstractVFSHandler
Direct Known Subclasses:
Handler, Handler, Handler

public abstract class AbstractVFSHandler
extends URLStreamHandler

VFS's file URL handler.

Author:
Bill Burke, Ales Justin

Constructor Summary
AbstractVFSHandler()
           
 
Method Summary
protected  int getProtocolNameLength()
          Get protocol name length.
protected  URLConnection openConnection(URL url)
           
 
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
 

Constructor Detail

AbstractVFSHandler

public AbstractVFSHandler()
Method Detail

getProtocolNameLength

protected int getProtocolNameLength()
Get protocol name length. e.g. vfsfile - 7, vfszip - 6, ...

Returns:
protocol name lenght

openConnection

protected URLConnection openConnection(URL url)
                                throws IOException
Specified by:
openConnection in class URLStreamHandler
Throws:
IOException


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