    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.

##

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

##

PassDirectory()

##

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

##

ATTR_PASSTARGET

     protected static int ATTR_PASSTARGET

  Attribute index - The target physicall directory of this resource.

##

PassDirectory

     public PassDirectory()

##

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

getDirectory

     public File getDirectory()

  The getDirectory method now returns the pass-directory.

  Returns:
    The pass target location.
  Overrides:
    getDirectory in class DirectoryResource

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