    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class org.w3c.jigsaw.filters.PutListResource

    java.lang.Object
       |
       +----org.w3c.tools.resources.AttributeHolder
               |
               +----org.w3c.tools.resources.Resource
                       |
                       +----org.w3c.tools.resources.FramedResource
                               |
                               +----org.w3c.jigsaw.filters.PutListResource

public class PutListResource
extends FramedResource

##

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.
debug

##

PutListResource()

##

addEntry(PutedEntry)
addPubEntry(PutedEntry)
getCvsSpace()
  Get this user's local CVS space root directory.
getFile()
  Get the file to use to store the edited list of files.
getPubFile()
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.
initialize(Object[])
  Initialize the frames of that framed resource.
lookupEntry(Request)
notifyUnload()
  This resource is being unloaded.
readList()
  Restore the list from the file.
readPubList()
  Restore the published 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.
writePubList()

##

debug

     protected static final boolean debug

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.

getPubFile

     public File getPubFile()

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.

getCvsSpace

     public File getCvsSpace()

  Get this user's local CVS space 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.

writePubList

     public synchronized void writePubList()

readList

     public synchronized void readList()

  Restore the list from the file.

readPubList

     public synchronized void readPubList()

  Restore the published list from the file.

addEntry

     public void addEntry(PutedEntry e)

addPubEntry

     public void addPubEntry(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 FramedResource

initialize

     public void initialize(Object values[])

  Initialize the frames of that framed resource.

  Overrides:
    initialize in class FramedResource

    All Packages  Class Hierarchy  This Package  Previous  Next  Index