All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.w3c.jigsaw.cvs.CvsFrame

java.lang.Object
   |
   +----org.w3c.tools.resources.AttributeHolder
           |
           +----org.w3c.tools.resources.Resource
                   |
                   +----org.w3c.tools.resources.FramedResource
                           |
                           +----org.w3c.tools.resources.ResourceFrame
                                   |
                                   +----org.w3c.tools.resources.ProtocolFrame
                                           |
                                           +----org.w3c.jigsaw.frames.HTTPFrame
                                                   |
                                                   +----org.w3c.jigsaw.frames.PostableFrame
                                                           |
                                                           +----org.w3c.jigsaw.cvs.CvsFrame

public class CvsFrame
extends PostableFrame

Variable Index

 o CACHE_CONTROL_NOCACHE
 o PRAGMA_NOCACHE

Constructor Index

 o CvsFrame()

Method Index

 o error(Request, String, CvsException)
Emit an HTML error message.
 o error(Request, String, String)
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 FramedResource to display the given cvs'ed file.
 o handle(Request, URLDecoder)
This is were we handle the big post request.
 o isIndexed(String)
 o lookupOther(LookupState, LookupResult)
Lookup method for the CVS manager.
 o performDirectoryAction(String, Request, URLDecoder)
Perform the given action on the underlying directory as a whole.
 o registerResource(FramedResource)
Register the resource and add CvsProperties in httpd.

Variables

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

Constructors

 o CvsFrame
 public CvsFrame()

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 error
 protected static Reply error(Request request,
                              String msg,
                              String details)
Emit an HTML error message.

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

Parameters:
name - The name of the file.
Returns:
A 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 isIndexed
 protected boolean isIndexed(String name)
 o performDirectoryAction
 protected Reply performDirectoryAction(String action,
                                        Request request,
                                        URLDecoder data) throws ProtocolException
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.
Throws: ProtocolException
if a protocol error occurs
 o registerResource
 public void registerResource(FramedResource resource)
Register the resource and add CvsProperties in httpd.

Parameters:
resource - The resource to register.
Overrides:
registerResource in class HTTPFrame
 o lookupOther
 protected boolean lookupOther(LookupState ls,
                               LookupResult lr) throws ProtocolException
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: ProtocolException
if a protocol error occurs
Overrides:
lookupOther in class HTTPFrame
 o get
 public Reply get(Request request) throws ProtocolException
Dump the content of the directory as a CVS form. The resulting form allows for trigerring actions on the various files.

Throws: ProtocolException
if a protocol error occurs
Overrides:
get in class PostableFrame
 o handle
 public Reply handle(Request request,
                     URLDecoder data) throws ProtocolException
This is were we handle the big post request.

Throws: ProtocolException
if a protocol error occurs
Overrides:
handle in class PostableFrame

All Packages  Class Hierarchy  This Package  Previous  Next  Index