    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class w3c.jigsaw.resources.PutableDirectory

    java.lang.Object
       |
       +----w3c.tools.store.AttributeHolder
               |
               +----w3c.tools.store.Resource
                       |
                       +----w3c.jigsaw.resources.HTTPResource
                               |
                               +----w3c.jigsaw.resources.FilteredResource
                                       |
                                       +----w3c.jigsaw.resources.ContainerResource
                                               |
                                               +----w3c.jigsaw.resources.StoreContainer
                                                       |
                                                       +----w3c.jigsaw.resources.DirectoryResource
                                                               |
                                                               +----w3c.jigsaw.resources.PutableDirectory

public class PutableDirectory
extends DirectoryResource

A Directoryresource that is able to create documents in reply to PUT.

##

ATTR_BROWSABLE
  Attribute index - Allow the GNN browse method.
browsetype
  Handle the browse method.

##

PutableDirectory()

##

browse(Request)
  A present to GNNPress users ! This method implements the `BROWSE` method that AOL press (or GNN press, or whatever its last name is) expects.
createResource(String, Request)
  Create new resource.
extended(Request)
  We hanlde (in some cases) one extended method.
getBrowsableFlag()
  Get this class browsable flag.
getBrowseType()
initialize(Object[])
  Initialize this directory resource with the given set of attributes.
lookup(LookupState, LookupResult)
  The lookup method creates resources on the fly...

##

ATTR_BROWSABLE

     protected static int ATTR_BROWSABLE

  Attribute index - Allow the GNN browse method.

browsetype

     protected static MimeType browsetype

  Handle the browse method.

##

PutableDirectory

     public PutableDirectory()

##

getBrowsableFlag

     public boolean getBrowsableFlag()

  Get this class browsable flag.

createResource

     protected HTTPResource createResource(String name,
                                           Request request) throws HTTPException

  Create new resource.

  Parameters:
    name - The identifier of the new resource.
    request - The request that trigered this resource creation.

lookup

     public boolean lookup(LookupState ls,
                           LookupResult lr) throws HTTPException

  The lookup method creates resources on the fly... The funny thing here, is that you need to create the resource before handling the PUT, since it will determine how to handle it.

  Parameters:
    ls - The current lookup state.
    lr - The lookup result being constructed.
  Returns:
    A boolean, true of lookup has completed, false if the caller should continue the lookup process.
  Throws: HTTPException
    If some error occurs.
  Overrides:
    lookup in class StoreContainer

getBrowseType

     protected synchronized MimeType getBrowseType()

browse

     public Reply browse(Request request) throws HTTPException

  A present to GNNPress users ! This method implements the `BROWSE` method that AOL press (or GNN press, or whatever its last name is) expects.

  Parameters:
    request - The request to process.
  Returns:
    A Reply instance.
  Throws: HTTPException
    If some error occurs.

extended

     public Reply extended(Request request) throws HTTPException, ClientException

  We hanlde (in some cases) one extended method.

  Parameters:
    request - The request to handle.
  Overrides:
    extended in class HTTPResource

initialize

     public void initialize(Object values[])

  Initialize this directory resource with the given set of attributes.

  Overrides:
    initialize in class DirectoryResource

    All Packages  Class Hierarchy  This Package  Previous  Next  Index