org.millscript.commons.vfs.protocols
Class AbstractProtocolVVolume

java.lang.Object
  extended by org.millscript.commons.vfs.AbstractVVolume
      extended by org.millscript.commons.vfs.protocols.AbstractProtocolVVolume
All Implemented Interfaces:
org.millscript.commons.alert.AlertDecorator, VVolume
Direct Known Subclasses:
FtpVolume, HttpVolume, LocalVolume

public abstract class AbstractProtocolVVolume
extends AbstractVVolume

The class provides a skeletal virtual filesystem volume, intended for easing support for different protocols.


Constructor Summary
protected AbstractProtocolVVolume(VFS v, java.net.URI root)
          Constructs a new virtual volume with the specified root URI, using the default root VFolder.
 
Method Summary
 VFolder getRootVFolder()
          Returns the root VFolder for this virtual volume.
 java.net.URI getURI()
          Returns the URI for the root of this virtual filesystem volume.
protected abstract  VFolder makeRootVFolder()
          Constructs the root folder for this volume, with the specified parent folder and returns it.
 
Methods inherited from class org.millscript.commons.vfs.AbstractVVolume
appendBaseURI, decorate, getParentVFS, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractProtocolVVolume

protected AbstractProtocolVVolume(VFS v,
                                  java.net.URI root)
Constructs a new virtual volume with the specified root URI, using the default root VFolder. The root VFolder is obtained by calling the makeRootVFolder method.

Parameters:
v - the VFS that was used to create this volume
root - the virtual filesystem volume root
Method Detail

getRootVFolder

public VFolder getRootVFolder()
Description copied from interface: VVolume
Returns the root VFolder for this virtual volume.

Returns:
the VFolder for the root of this volume
See Also:
VVolume.getRootVFolder()

getURI

public final java.net.URI getURI()
Description copied from interface: VVolume
Returns the URI for the root of this virtual filesystem volume.

Returns:
a URI for this volume
See Also:
VVolume.getURI()

makeRootVFolder

protected abstract VFolder makeRootVFolder()
Constructs the root folder for this volume, with the specified parent folder and returns it.

Returns:
the VFolder for the root of this volume


Copyright © 2005-2007 Open World Ltd. All Rights Reserved.