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.
-
CACHE_CONTROL_NOCACHE
-
-
PRAGMA_NOCACHE
-
-
CvsDirectoryResource()
-
-
error(Request, String, CvsException)
- Emit an HTML error message.
-
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(String)
- Get a suitable HTTP resource to display the given cvs'ed file.
-
handle(Request, URLDecoder)
- This is were we handle the big post request.
-
initialize(Object[])
- Get a CVS directory manager for the given directory.
-
lookup(LookupState, LookupResult)
- Lookup method for the CVS manager.
-
performDirectoryAction(String, Request, URLDecoder)
- Perform the given action on the underlying directory as a whole.
CACHE_CONTROL_NOCACHE
protected static HttpCacheControl CACHE_CONTROL_NOCACHE
PRAGMA_NOCACHE
protected static HttpTokenList PRAGMA_NOCACHE
CvsDirectoryResource
public CvsDirectoryResource()
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.
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.
getCvsManager
protected synchronized CvsDirectory getCvsManager()
- Get the CVS manager associated with this resource, or create it.
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.
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
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
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