All Packages Class Hierarchy This Package Previous Next Index
Class org.w3c.jigedit.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.jigedit.cvs.CvsFrame
- public class CvsFrame
- extends PostableFrame
-
CACHE_CONTROL_NOCACHE
-
-
PRAGMA_NOCACHE
-
-
CvsFrame()
-
-
addStyle(HtmlGenerator)
-
-
error(CvsFrame, Request, String, CvsException)
- Emit an HTML error message.
-
error(CvsFrame, Request, String, String)
- Emit an HTML error message.
-
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.
-
getAction(Request)
-
-
getCvsManager()
- Get the CVS manager associated with this resource, or create it.
-
getHtmlGenerator(CvsFrame, String)
- Like getHtmlGenerator(String), and add the frame style sheet.
-
getHtmlGenerator(String)
- Get an HtmlGenerator with some style defined:
tags with style
- BODY
- CAPTION
- P.error
- A
- A.alphalink
- H1.center
Some DIV
- DIV.box
- DIV.boxcenter
- DIV.error
Some SPAN
- .warning
- .title
- .status
- .statusok
- .titleblack
-
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.
-
refresh(Request)
-
-
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()
addStyle
protected static void addStyle(HtmlGenerator g)
getHtmlGenerator
public static HtmlGenerator getHtmlGenerator(String title)
- Get an HtmlGenerator with some style defined:
tags with style
- BODY
- CAPTION
- P.error
- A
- A.alphalink
- H1.center
Some DIV
- DIV.box
- DIV.boxcenter
- DIV.error
Some SPAN
- .warning
- .title
- .status
- .statusok
- .titleblack
- Parameters:
- title - The document title.
- Returns:
- a HtmlGenerator instance.
getHtmlGenerator
public static HtmlGenerator getHtmlGenerator(CvsFrame cvsframe,
String title)
- Like getHtmlGenerator(String), and add the frame style sheet.
- Parameters:
- title - The document title.
- Returns:
- a HtmlGenerator instance.
- See Also:
- getHtmlGenerator
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.
error
protected static Reply error(CvsFrame cvsframe,
Request request,
String msg,
CvsException ex)
- Emit an HTML error message.
- Parameters:
- cvsframe - The CvsFrame sending this error.
- 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(CvsFrame cvsframe,
Request request,
String msg,
String details)
- Emit an HTML error message.
- Parameters:
- cvsframe - The CvsFrame sending this error
- 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
refresh
protected void refresh(Request request) throws ProtocolException
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
getAction
protected String getAction(Request request) throws HTTPException
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