    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
  Attribute index - The file used to store the modification list.
ATTR_ROOT
  Attribute index - The web server public space.
ATTR_SPACE
  Attribute index - The user's local space.

##

PutListResource()

##

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

##

ATTR_FILE

     protected static int ATTR_FILE

  Attribute index - The file used to store the modification list.

ATTR_SPACE

     protected static int ATTR_SPACE

  Attribute index - The user's local space.

ATTR_ROOT

     protected static int ATTR_ROOT

  Attribute index - The web server public space.

##

PutListResource

     public PutListResource()

##

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

     public File getFile()

  Get the file to use to store the edited list of files.

  Returns:
    The file.
  Overrides:
    getFile in class FileResource

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

     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

     public synchronized void writeList()

  Dump the current list of edited files back to disk.

readList

     public synchronized void readList()

  Restore the list from the file.

addEntry

     public void addEntry(PutedEntry e)

lookupEntry

     public PutedEntry lookupEntry(Request request)

registerRequest

     public synchronized void registerRequest(Request request)

  Register the given request, which must has a PUT method.

  Parameters:
    file - The modified file.

notifyUnload

     public synchronized void notifyUnload()

  This resource is being unloaded.

  Overrides:
    notifyUnload in class Resource

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

     protected void performAction(Request request,
                                  String action,
                                  String key)

handle

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

  Handle the form submission, after posted data parsing.

  Overrides:
    handle in class PostableResource

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