All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.jigsaw.filters.PutListResource

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

public class PutListResource
extends PostableResource

Variable Index

 o ATTR_FILE
Attribute index - The file used to store the modification list.
 o ATTR_ROOT
Attribute index - The web server public space.
 o ATTR_SPACE
Attribute index - The user's local space.

Constructor Index

 o PutListResource()

Method Index

 o addEntry(PutedEntry)
 o get(Request)
Dump the list of modified files.
 o getFile()
Get the file to use to store the edited list of files.
 o getRoot()
Get the root directory of the public server to update.
 o getServerFile(File)
Compute the path of the public file for the given local file.
 o getSpace()
Get this user's local CVS spacxe root directory.
 o handle(Request, URLDecoder)
Handle the form submission, after posted data parsing.
 o initialize(Object[])
Setup the list of allowed methods.
 o lookupEntry(Request)
 o notifyUnload()
This resource is being unloaded.
 o performAction(Request, String, String)
 o readList()
Restore the list from the file.
 o registerRequest(Request)
Register the given request, which must has a PUT method.
 o writeList()
Dump the current list of edited files back to disk.

Variables

 o ATTR_FILE
 protected static int ATTR_FILE
Attribute index - The file used to store the modification list.

 o ATTR_SPACE
 protected static int ATTR_SPACE
Attribute index - The user's local space.

 o ATTR_ROOT
 protected static int ATTR_ROOT
Attribute index - The web server public space.

Constructors

 o PutListResource
 public PutListResource()

Methods

 o getServerFile
 protected File getServerFile(File file)
Compute the path of the public file for the given local file. This method uses the space and root attributes to translate the path of the given file from the user's local space to the public (server) space.

Returns:
A File instance, or null.
 o getFile
 public File getFile()
Get the file to use to store the edited list of files.

Returns:
The file.
Overrides:
getFile in class FileResource
 o getRoot
 public File getRoot()
Get the root directory of the public server to update.

Returns:
The root directory of the public server space, supposed to be controled by CVS.
 o getSpace
 public File getSpace()
Get this user's local CVS spacxe root directory.

Returns:
The usre's root of the CVS local space, assumed to be under CVS control.
 o writeList
 public synchronized void writeList()
Dump the current list of edited files back to disk.

 o readList
 public synchronized void readList()
Restore the list from the file.

 o addEntry
 public void addEntry(PutedEntry e)
 o lookupEntry
 public PutedEntry lookupEntry(Request request)
 o registerRequest
 public synchronized void registerRequest(Request request)
Register the given request, which must has a PUT method.

Parameters:
file - The modified file.
 o notifyUnload
 public synchronized void notifyUnload()
This resource is being unloaded.

Overrides:
notifyUnload in class Resource
 o get
 public Reply get(Request request) throws HTTPException
Dump the list of modified files.

Parameters:
request - The request to handle.
Returns:
A Reply instance.
Overrides:
get in class PostableResource
 o performAction
 protected void performAction(Request request,
                              String action,
                              String key)
 o handle
 public Reply handle(Request request,
                     URLDecoder data) throws HTTPException
Handle the form submission, after posted data parsing.

Overrides:
handle in class PostableResource
 o initialize
 public void initialize(Object values[])
Setup the list of allowed methods.

Overrides:
initialize in class PostableResource

All Packages  Class Hierarchy  This Package  Previous  Next  Index