All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.jigsaw.cvs.CvsDirectoryResource

java.lang.Object
   |
   +----w3c.tools.store.AttributeHolder
           |
           +----w3c.tools.store.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.


Variable Index

 o CACHE_CONTROL_NOCACHE
 o PRAGMA_NOCACHE

Constructor Index

 o CvsDirectoryResource()

Method Index

 o error(Request, String, CvsException)
Emit an HTML error message.
 o get(Request)
Dump the content of the directory as a CVS form.
 o getCvsManager()
Get the CVS manager associated with this resource, or create it.
 o getResourceFor(String)
Get a suitable HTTP resource to display the given cvs'ed file.
 o handle(Request, URLDecoder)
This is were we handle the big post request.
 o initialize(Object[])
Get a CVS directory manager for the given directory.
 o lookup(LookupState, LookupResult)
Lookup method for the CVS manager.
 o performDirectoryAction(String, Request, URLDecoder)
Perform the given action on the underlying directory as a whole.

Variables

 o CACHE_CONTROL_NOCACHE
 protected static HttpCacheControl CACHE_CONTROL_NOCACHE
 o PRAGMA_NOCACHE
 protected static HttpTokenList PRAGMA_NOCACHE

Constructors

 o CvsDirectoryResource
 public CvsDirectoryResource()

Methods

 o error
 protected static Reply error(Request request,
                              String msg,
                              CvsException ex)
Emit an HTML error message.

Parameters:
request - The request that trigered the error.
msg - The error message.
ex - The CvsException that happened while processing the request.
Returns:
An HTTP reply.
 o getResourceFor
 protected HTTPResource getResourceFor(String name)
Get a suitable HTTP resource to display the given cvs'ed file.

Parameters:
name - The name of the file.
Returns:
An CvsEntryResource, or null if none was found.
 o getCvsManager
 protected synchronized CvsDirectory getCvsManager()
Get the CVS manager associated with this resource, or create it.

 o performDirectoryAction
 protected Reply performDirectoryAction(String action,
                                        Request request,
                                        URLDecoder data) throws HTTPException
Perform the given action on the underlying directory as a whole.

Parameters:
action - The action to perform.
request - The request that triggered the action.
data - The decoded form data.
Returns:
A suitable HTTP reply.
 o lookup
 public boolean lookup(LookupState ls,
                       LookupResult lr) throws HTTPException
Lookup method for the CVS manager. Lookup for a cvs entry object having the given name, if found, wrap it into a CvsEntryResource object and return it.

Parameters:
ls - The current lookup state.
lr - The (under construction) lookup result.
Throws: HTTPException
If lookup fails.
Overrides:
lookup in class FilteredResource
 o 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
 o handle
 public Reply handle(Request request,
                     URLDecoder data) throws HTTPException
This is were we handle the big post request.

Overrides:
handle in class PostableResource
 o initialize
 public void initialize(Object values[])
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.
Overrides:
initialize in class PostableResource

All Packages  Class Hierarchy  This Package  Previous  Next  Index