org.millscript.commons.vfs
Class AbstractVVolume

java.lang.Object
  extended by org.millscript.commons.vfs.AbstractVVolume
All Implemented Interfaces:
org.millscript.commons.alert.AlertDecorator, VVolume
Direct Known Subclasses:
AbstractMIMEVVolume, AbstractProtocolVVolume, SimpleVolume

public abstract class AbstractVVolume
extends java.lang.Object
implements org.millscript.commons.alert.AlertDecorator, VVolume

The class provides a skeletal virtual filesystem volume.


Constructor Summary
protected AbstractVVolume(VEntry e)
          Constructs a new virtual volume, using the VFS from the specified entry.
protected AbstractVVolume(VFS v)
          Constructs a new virtual volume, using the specified VFS.
 
Method Summary
 java.lang.StringBuffer appendBaseURI(java.lang.StringBuffer buffer)
          Appends the base URI of this volume to the specified string buffer.
 org.millscript.commons.alert.Alert decorate(org.millscript.commons.alert.Alert alert)
           
 VFS getParentVFS()
          Returns the parent VFS, that which created this URI scheme handler.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.millscript.commons.vfs.VVolume
getRootVFolder, getURI
 

Constructor Detail

AbstractVVolume

protected AbstractVVolume(VFS v)
Constructs a new virtual volume, using the specified VFS.

Parameters:
v - the VFS that was used to create this volume

AbstractVVolume

protected AbstractVVolume(VEntry e)
Constructs a new virtual volume, using the VFS from the specified entry.

Parameters:
e - the entry whose VFS to use
Method Detail

appendBaseURI

public java.lang.StringBuffer appendBaseURI(java.lang.StringBuffer buffer)
Description copied from interface: VVolume
Appends the base URI of this volume to the specified string buffer. The base URI is considered to be the scheme, host and port of this volumes URI and possibly a few segments of a path.

Specified by:
appendBaseURI in interface VVolume
Parameters:
buffer - the string buffer to append the base URI to
Returns:
the specified StringBuffer with this volumes base URI appended to it
See Also:
VVolume.appendBaseURI(java.lang.StringBuffer)

decorate

public org.millscript.commons.alert.Alert decorate(org.millscript.commons.alert.Alert alert)
Specified by:
decorate in interface org.millscript.commons.alert.AlertDecorator
See Also:
AlertDecorator.decorate(org.millscript.commons.alert.Alert)

getParentVFS

public VFS getParentVFS()
Description copied from interface: VVolume
Returns the parent VFS, that which created this URI scheme handler. The parent VFS is maintained through to each volume, so that we can use it for configuration.

Specified by:
getParentVFS in interface VVolume
Returns:
See Also:
VVolume.getParentVFS()

toString

public final java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


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