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.
-
error(Request, String, String)
- 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.
-
isIndexed(String)
-
-
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 the resource and add CvsProperties in httpd.
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.
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.
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.
isIndexed
protected boolean isIndexed(String name)
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
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
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
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
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