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.


Variable Index

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

Constructor Index

 o PutableDirectory()

Method Index

 o 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.
 o createResource(String, Request)
Create new resource.
 o extended(Request)
We hanlde (in some cases) one extended method.
 o getBrowsableFlag()
Get this class browsable flag.
 o getBrowseType()
 o initialize(Object[])
Initialize this directory resource with the given set of attributes.
 o lookup(LookupState, LookupResult)
The lookup method creates resources on the fly...

Variables

 o ATTR_BROWSABLE
 protected static int ATTR_BROWSABLE
Attribute index - Allow the GNN browse method.

 o browsetype
 protected static MimeType browsetype
Handle the browse method.

Constructors

 o PutableDirectory
 public PutableDirectory()

Methods

 o getBrowsableFlag
 public boolean getBrowsableFlag()
Get this class browsable flag.

 o 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.
 o 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
 o getBrowseType
 protected synchronized MimeType getBrowseType()
 o 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.
 o 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
 o 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