    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class w3c.jigsaw.cvs.CvsDirectoryResource

    java.lang.Object
       |
       +----w3c.jigsaw.resources.AttributeHolder
               |
               +----w3c.jigsaw.resources.Resource
                       |
                       +----w3c.jigsaw.resources.HTTPResource
                               |
                               +----w3c.jigsaw.resources.FilteredResource
                                       |
                                       +----w3c.jigsaw.resources.FileResource
                                               |
                                               +----w3c.jigsaw.forms.PostableResource
                                                       |
                                                       +----w3c.jigsaw.cvs.CvsDirectoryResource

public class CvsDirectoryResource
extends PostableResource

This class implements an HTML interface to the CVS directory package.

##

CACHE_CONTROL_NOCACHE
PRAGMA_NOCACHE

##

CvsDirectoryResource()

##

get(Request)
  Dump the content of the directory as a CVS form.
getCvsManager()
  Get the CVS manager associated with this resource, or create it.
getResourceFor(CvsEntry)
  Get a suitable HTTP resource to display the given cvs entry.
handle(Request, URLDecoder)
  This is were we handle the big post request.
initializeCVS(httpd)
  Get a CVS directory manager for the given directory.
lookup(LookupState, LookupResult)
  Lookup method for the CVS manager.

##

CACHE_CONTROL_NOCACHE

      protected static HttpCacheControl CACHE_CONTROL_NOCACHE

PRAGMA_NOCACHE

      protected static HttpTokenList PRAGMA_NOCACHE

##

CvsDirectoryResource

      public CvsDirectoryResource()

##

getResourceFor

      protected HTTPResource getResourceFor(CvsEntry entry)

  Get a suitable HTTP resource to display the given cvs entry.
  Parameters:
    entry - The CVS entry to be displayed.
  Returns:
    An CvsEntryResource, or null if none was found.

getCvsManager

      protected final CvsDirectory getCvsManager()

  Get the CVS manager associated with this resource, or create it.

lookup

      public boolean lookup(LookupState ls,
                            LookupResult lr) throws HTTPException

  Lookup method for the CVS manager. Lookup for a CvsEntry object having the given name, if found, wrap it into aCvsEntryResource object and return it.
  Parameters:
    state - The current lookup state.
  Overrides:
    lookup in class FilteredResource

get

      public Reply get(Request request) throws HTTPException

  Dump the content of the directory as a CVS form. The resulting form allows for trigerring actions on the various files.
  Overrides:
    get in class PostableResource

handle

      public Reply handle(Request request,
                          URLDecoder data) throws HTTPException

  This is were we handle the big post request.
  Overrides:
    handle in class PostableResource

initializeCVS

      public static synchronized void initializeCVS(httpd server)

  Get a CVS directory manager for the given directory.
  Parameters:
    server - The server wanting to create the CVS directory manager.
    url - The URL of the directory to examine.
    dir - The directory to exmaine.

    All Packages  Class Hierarchy  This Package  Previous  Next  Index