    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class org.w3c.jigsaw.cvs.AutoLookupDirectory

    java.lang.Object
       |
       +----org.w3c.tools.resources.AttributeHolder
               |
               +----org.w3c.tools.resources.Resource
                       |
                       +----org.w3c.tools.resources.FramedResource
                               |
                               +----org.w3c.tools.resources.AbstractContainer
                                       |
                                       +----org.w3c.tools.resources.ContainerResource
                                               |
                                               +----org.w3c.tools.resources.DirectoryResource
                                                       |
                                                       +----org.w3c.jigsaw.resources.DirectoryResource
                                                               |
                                                               +----org.w3c.jigsaw.cvs.AutoLookupDirectory

public class AutoLookupDirectory
extends DirectoryResource

A special version of DirectoryResource that can fetch a file from CVS directly if it is not already here. It can alos do an automatic update, depending on a flag

##

AutoLookupDirectory()

##

getCvsManager()
  Get the appropriate CVS manager for the directory we handle.
isAutoUpdatable()
  tell if we must always do an update.
lookup(String)
  Lookup the resource having the given name in this directory.

##

AutoLookupDirectory

     public AutoLookupDirectory()

##

getCvsManager

     protected synchronized CvsDirectory getCvsManager() throws CvsException

  Get the appropriate CVS manager for the directory we handle.

  Returns:
    A CvsDirectory instance.
  Throws: HTTPException
    If we couldn't get the manager.

isAutoUpdatable

     public boolean isAutoUpdatable()

  tell if we must always do an update.

lookup

     public ResourceReference lookup(String name)

  Lookup the resource having the given name in this directory. if the resource is not present, it will try to fetch it from the Cvs repository.

  Parameters:
    name - The name of the resource.
  Returns:
    A ResourceReference instance, or null.
  Overrides:
    lookup in class DirectoryResource

    All Packages  Class Hierarchy  This Package  Previous  Next  Index