All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.jigsaw.resources.PassDirectory

java.lang.Object
   |
   +----w3c.tools.store.AttributeHolder
           |
           +----w3c.tools.store.Resource
                   |
                   +----w3c.jigsaw.resources.HTTPResource
                           |
                           +----w3c.jigsaw.resources.FilteredResource
                                   |
                                   +----w3c.jigsaw.resources.ContainerResource
                                           |
                                           +----w3c.jigsaw.resources.StoreContainer
                                                   |
                                                   +----w3c.jigsaw.resources.DirectoryResource
                                                           |
                                                           +----w3c.jigsaw.resources.PassDirectory

public class PassDirectory
extends DirectoryResource
A directory resource able to pass (jump) into some non-related directory. This resource provides something similar to the PASSS rule of the CERN server: it allows you to export a directory that is not strictly under the server physicall space (e.g. none of its parent directory is the server space directory).

Using this resource means that your exported space is no more restrained to the server space directory, which can be considered as a security problem.


Variable Index

 o ATTR_PASSTARGET
Attribute index - The target physicall directory of this resource.

Constructor Index

 o PassDirectory()

Method Index

 o getDirectory()
The getDirectory method now returns the pass-directory.
 o initialize(Object[])
Make the directory attribute default to the target location.
 o setValue(int, Object)
Catch side-effects on pass-target, to absolutize it.

Variables

 o ATTR_PASSTARGET
 protected static int ATTR_PASSTARGET
Attribute index - The target physicall directory of this resource.

Constructors

 o PassDirectory
 public PassDirectory()

Methods

 o setValue
 public void setValue(int idx,
                      Object value)
Catch side-effects on pass-target, to absolutize it.

Parameters:
idx - The attribute to set.
value - The new value.
Overrides:
setValue in class DirectoryResource
 o getDirectory
 public File getDirectory()
The getDirectory method now returns the pass-directory.

Returns:
The pass target location.
Overrides:
getDirectory in class DirectoryResource
 o initialize
 public void initialize(Object values[])
Make the directory attribute default to the target location. This is required for classes that rely on the directory attribute to compute their own attributes.

Parameters:
values - The values we should initialized from.
Overrides:
initialize in class DirectoryResource

All Packages  Class Hierarchy  This Package  Previous  Next  Index