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
   
  -   ATTR_FILE ATTR_FILE
-   Attribute index - The file used to store the modification list.
  
-   ATTR_ROOT ATTR_ROOT
-   Attribute index - The web server public space.
  
-   ATTR_SPACE ATTR_SPACE
-   Attribute index - The user's local space.
   
  -   PutListResource() PutListResource()
-  
   
  -   addEntry(PutedEntry) addEntry(PutedEntry)
-  
  
-   get(Request) get(Request)
-   Dump the list of modified files.
  
-   getFile() getFile()
-   Get the file to use to store the edited list of files.
  
-   getRoot() getRoot()
-   Get the root directory of the public server to update.
  
-   getServerFile(File) getServerFile(File)
-   Compute the path of the public file for the given local file.
  
-   getSpace() getSpace()
-   Get this user's local CVS spacxe root directory.
  
-   handle(Request, URLDecoder) handle(Request, URLDecoder)
-   Handle the form submission, after posted data parsing.
  
-   initialize(Object[]) initialize(Object[])
-   Setup the list of allowed methods.
  
-   lookupEntry(Request) lookupEntry(Request)
-  
  
-   notifyUnload() notifyUnload()
-   This resource is being unloaded.
  
-   performAction(Request, String, String) performAction(Request, String, String)
-  
  
-   readList() readList()
-   Restore the list from the file.
  
-   registerRequest(Request) registerRequest(Request)
-   Register the given request, which must has a PUT method.
  
-   writeList() writeList()
-   Dump the current list of edited files back to disk.
   
 ATTR_FILE
ATTR_FILE
 protected static int ATTR_FILE
  -  Attribute index - The file used to store the modification list.
 
 ATTR_SPACE
ATTR_SPACE
 protected static int ATTR_SPACE
  -  Attribute index - The user's local space.
 
 ATTR_ROOT
ATTR_ROOT
 protected static int ATTR_ROOT
  -  Attribute index - The web server public space.
 
   
 PutListResource
PutListResource
 public PutListResource()
   
 getServerFile
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.
  
 
 getFile
getFile
 public File getFile()
  -  Get the file to use to store the edited list of files.
   
- 
    -  Returns:
    
-  The file.
    
-  Overrides:
    
-  getFile in class FileResource
  
 
 getRoot
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.
  
 
 getSpace
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.
  
 
 writeList
writeList
 public synchronized void writeList()
  -  Dump the current list of edited files back to disk.
 
 readList
readList
 public synchronized void readList()
  -  Restore the list from the file.
 
 addEntry
addEntry
 public void addEntry(PutedEntry e)
 lookupEntry
lookupEntry
 public PutedEntry lookupEntry(Request request)
 registerRequest
registerRequest
 public synchronized void registerRequest(Request request)
  -  Register the given request, which must has a PUT method.
   
- 
    -  Parameters:
    
-  file - The modified file.
  
 
 notifyUnload
notifyUnload
 public synchronized void notifyUnload()
  -  This resource is being unloaded.
   
- 
    -  Overrides:
    
-  notifyUnload in class Resource
  
 
 get
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
  
 
 performAction
performAction
 protected void performAction(Request request,
                              String action,
                              String key)
 handle
handle
 public Reply handle(Request request,
                     URLDecoder data) throws HTTPException
  -  Handle the form submission, after posted data parsing.
   
- 
    -  Overrides:
    
-  handle in class PostableResource
  
 
 initialize
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