    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

##

CACHE_CONTROL_NOCACHE
PRAGMA_NOCACHE

##

CvsFrame()

##

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 FramedResource to display the given cvs'ed file.
handle(Request, URLDecoder)
  This is were we handle the big post request.
lookupOther(LookupState, LookupResult)
  Lookup method for the CVS manager.
performDirectoryAction(String, Request, URLDecoder)
  Perform the given action on the underlying directory as a whole.
registerResource(FramedResource)
  Register a target resource.

##

CACHE_CONTROL_NOCACHE

     protected static HttpCacheControl CACHE_CONTROL_NOCACHE

PRAGMA_NOCACHE

     protected static HttpTokenList PRAGMA_NOCACHE

##

CvsFrame

     public CvsFrame()

##

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 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.

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 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.

registerResource

     public void registerResource(FramedResource resource)

  Register a target resource.

  Overrides:
    registerResource in class HTTPFrame

lookupOther

     public 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.
  Overrides:
    lookupOther in class HTTPFrame

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.

  Overrides:
    get in class PostableFrame

handle

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

  This is were we handle the big post request.

  Overrides:
    handle in class PostableFrame

    All Packages  Class Hierarchy  This Package  Previous  Next  Index