    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class org.w3c.jigsaw.frames.HTTPFrame

    java.lang.Object
       |
       +----org.w3c.tools.resources.AttributeHolder
               |
               +----org.w3c.tools.resources.Resource
                       |
                       +----org.w3c.tools.resources.FramedResource
                               |
                               +----org.w3c.tools.resources.ResourceFrame
                                       |
                                       +----org.w3c.tools.resources.ProtocolFrame
                                               |
                                               +----org.w3c.jigsaw.frames.HTTPFrame

public class HTTPFrame
extends ProtocolFrame

Default class to handle the HTTP protocol, manage FileResource and DirectoryResource.

##

_allowed
  Methods allowed by that class in general:
acceptRanges
  Does this resource support byte ranges.
allowed
  Methods allowed by instances of that class in particular:
ATTR_ALLOW_DEL
  Attribute index - delete allowed for the associated resource ?
ATTR_BROWSABLE
  Attribute index - Allow the GNN browse method.
ATTR_CONTENT_ENCODING
  Attribute index - The index for the content encodings attribute.
ATTR_CONTENT_LANGUAGE
  Attribute index - The index for the content languages attribute.
ATTR_CONTENT_LENGTH
  Attribute index - The index for the content length attribute.
ATTR_CONTENT_TYPE
  Attribute index - The index for the content type attribute.
ATTR_ICON
  Attribute index - The icon (if any) associated to the resource.
ATTR_ICONDIR
  Attribute index - The icon directory to use in dir listing.
ATTR_INDEX
  Attribute index - our index resource name.
ATTR_MAXAGE
  Attribute index - Max age: the maximum drift allowed from reality.
ATTR_MD5
  Attribute index - Send MD5 Digest: the md5 digest of the resource sent
ATTR_PUTABLE
  Attribute index - Do we allow PUT method on this file.
ATTR_QUALITY
  Attributes index - The index for the quality attribute.
ATTR_RELOCATE
  Attribute index - The index for our relocate attribute.
ATTR_STYLE_LINK
  Attribute index - Style sheet for directory listing
ATTR_TITLE
  Attribute index - The index for the title attribute.
browsetype
  The Browse Mime type.
COND_FAILED
  Condition check return code - Condition existed but failed.
COND_OK
  Condition check return code - Condition existed and succeeded.
dresource
  The associated DirectoryResource (if any)
fresource
  The associated FileResource (if any)
listing
  Our current (cached) directory listing.
listing_stamp
  The time at which we generated the directory index.

##

HTTPFrame()

##

addStyleSheet(HtmlGenerator)
  Add our own Style Sheet to the HtmlGenerator.
attributeChanged(AttributeChangedEvent)
  Listen its resource.
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.
checkIfMatch(Request)
  Check the `If-Match` condition of that request.
checkIfModifiedSince(Request)
  Check the `If-Modified-Since` condition of that request.
checkIfNoneMatch(Request)
  Check the `If-None-Match` condition of that request.
checkIfUnmodifiedSince(Request)
  Check the `If-Unmodified-Since` condition of that request.
checkRequest(RequestInterface)
  Check the request.
computeTrashDir(File)
computeTrashFile(File)
createDefaultReply(Request, int)
  Create a reply to answer to request on this file.
createFileReply(Request)
  Create the reply relative to the given file.
delete(Request)
  The default DELETE method, actually the resource (file, directory) is moved into the trash directory which is not accessible via HTTP.
deleteDirectoryResource(Request)
  Perform a DELETE for the associated DirectoryResource.
deleteFileResource(Request)
  Perform a DELETE for the associated FileResource.
deleteOtherResource(Request)
  Perform a DELETE for the associated resource.
extended(Request)
  The handler for unknown method replies with a not implemented.
get(Request)
  The default GET method.
getAllowDeleteFlag()
  delete allowed for the associated resource ?
getBrowsableFlag()
  Get this class browsable flag.
getBrowseType()
  Get the Browse Mime type.
getContentEncoding()
  Get this resource content encoding.
getContentLanguage()
  Get this resource content language.
getContentLength()
  Get this resource content length.
getContentType()
  Get this resource content type.
getDirectoryListing(Request)
  Reply with an HTML doc listing the resources of this directory.
getDirectoryResource()
  Get the associated DirectoryResource (if any)
getDirectoryResource(Request)
  Perform a GET for the associated DirectoryResource.
getFileResource()
  Get the associated FileResource (if any)
getFileResource(Request)
  Get for FileResource
getHelpURL()
  Get this resource's help url.
getHelpURL(String)
  Get the help URL for that resource's attribute.
getIcon()
  Get this resource's icon.
getIconDirectory()
  Get the optional icon directory.
getIndex()
  Get the optinal index name for this directory listing.
getMaxAge()
  Get this resource's max age.
getMD5Flag()
  Do we send the MD5 digest?
getOtherResource(Request)
  The default GET method for other king of associated resource
getPutableFlag()
  Get the PUT'able flag (are we allow to PUT to the resource ?)
getQuality()
  Get this resource quality.
getRelocateFlag()
  Should we relocate invalid requests to this directory.
getStyleSheetURL()
  Get this frame style sheet link
getTitle()
  Get this resource title.
getURL(Request)
  Get the full URL for that resource.
handleRangeRequest(Request, HttpRange)
  handles a Range Request
head(Request)
  The default HEAD method replies does a GET and removes entity.
headDirectoryResource(Request)
  Perform a HEAD request for the associated DirectoryResource.
headFileResource(Request)
  Perform a HEAD request for the associated FileResource.
headOtherResource(Request)
  Perform a HEAD request for the associated resource.
link(Request)
  The default LINK method replies with a not implemented.
lookup(LookupState, LookupResult)
  Lookup the target resource.
lookupDirectory(LookupState, LookupResult)
  Lookup the target resource when associated with a DirectoryResource.
lookupFile(LookupState, LookupResult)
  Lookup the target resource when associated with a FileResource.
lookupOther(LookupState, LookupResult)
  Lookup the target resource when associated with an unknown resource.
lookupResource(LookupState, LookupResult)
  Lookup the target resource (dispath to more specific lookup methods).
options(Request)
  The default OPTIONS method replies with a not implemented.
perform(RequestInterface)
  Perform the request
performFrames(RequestInterface)
  Perform the request on all the frames of that resource.
post(Request)
  The default POST method replies with a not implemented.
put(Request)
  The default PUT method.
putFileResource(Request)
  Change the content of the associated FileResource.
putOtherResource(Request)
  Always throw a ProtocolException.
registerOtherResource(FramedResource)
  use this one instead of registerResource if the resource type doesn't matter or if this is not a file or a directory resource.
registerResource(FramedResource)
  Register this frame to the given resource.
setValue(int, Object)
  Catch setValue, to maintain cached header values correctness.
trace(Request)
  The default TRACE method replies with a not implemented
unlink(Request)
  The default UNLINK method replies with a not implemented.
updateCachedHeaders()
  Update the cached headers value.

##

COND_FAILED

     public static final int COND_FAILED

  Condition check return code - Condition existed but failed.

COND_OK

     public static final int COND_OK

  Condition check return code - Condition existed and succeeded.

_allowed

     protected static HttpTokenList _allowed

  Methods allowed by that class in general:

allowed

     protected HttpTokenList allowed

  Methods allowed by instances of that class in particular:

ATTR_QUALITY

     protected static int ATTR_QUALITY

  Attributes index - The index for the quality attribute.

ATTR_TITLE

     protected static int ATTR_TITLE

  Attribute index - The index for the title attribute.

ATTR_CONTENT_LANGUAGE

     protected static int ATTR_CONTENT_LANGUAGE

  Attribute index - The index for the content languages attribute.

ATTR_CONTENT_ENCODING

     protected static int ATTR_CONTENT_ENCODING

  Attribute index - The index for the content encodings attribute.

ATTR_CONTENT_TYPE

     protected static int ATTR_CONTENT_TYPE

  Attribute index - The index for the content type attribute.

ATTR_CONTENT_LENGTH

     protected static int ATTR_CONTENT_LENGTH

  Attribute index - The index for the content length attribute.

ATTR_ICON

     protected static int ATTR_ICON

  Attribute index - The icon (if any) associated to the resource.

ATTR_MAXAGE

     protected static int ATTR_MAXAGE

  Attribute index - Max age: the maximum drift allowed from reality.

ATTR_MD5

     protected static int ATTR_MD5

  Attribute index - Send MD5 Digest: the md5 digest of the resource sent

ATTR_ALLOW_DEL

     protected static int ATTR_ALLOW_DEL

  Attribute index - delete allowed for the associated resource ?

ATTR_PUTABLE

     protected static int ATTR_PUTABLE

  Attribute index - Do we allow PUT method on this file.

ATTR_RELOCATE

     protected static int ATTR_RELOCATE

  Attribute index - The index for our relocate attribute.

ATTR_INDEX

     protected static int ATTR_INDEX

  Attribute index - our index resource name.

ATTR_ICONDIR

     protected static int ATTR_ICONDIR

  Attribute index - The icon directory to use in dir listing.

ATTR_BROWSABLE

     protected static int ATTR_BROWSABLE

  Attribute index - Allow the GNN browse method.

ATTR_STYLE_LINK

     protected static int ATTR_STYLE_LINK

  Attribute index - Style sheet for directory listing

dresource

     protected DirectoryResource dresource

  The associated DirectoryResource (if any)

fresource

     protected FileResource fresource

  The associated FileResource (if any)

acceptRanges

     protected boolean acceptRanges

  Does this resource support byte ranges.

listing

     protected HtmlGenerator listing

  Our current (cached) directory listing.

listing_stamp

     protected long listing_stamp

  The time at which we generated the directory index.

browsetype

     protected static MimeType browsetype

  The Browse Mime type.

##

HTTPFrame

     public HTTPFrame()

##

registerResource

     public void registerResource(FramedResource resource)

  Register this frame to the given resource.

  Parameters:
    resource - The resource associated with this frame.
  Overrides:
    registerResource in class ResourceFrame

getFileResource

     public FileResource getFileResource()

  Get the associated FileResource (if any)

  Returns:
    a FileResource instance or null if no FileResource is associated with this frame.

getDirectoryResource

     public DirectoryResource getDirectoryResource()

  Get the associated DirectoryResource (if any)

  Returns:
    a DirectoryResource instance or null if no DirectoryResource is associated with this frame.

registerOtherResource

     public void registerOtherResource(FramedResource resource)

  use this one instead of registerResource if the resource type doesn't matter or if this is not a file or a directory resource. In subclasses you should have to do that:

        public void registerResource(FramedResource resource) {
         super.registerOtherResource(resource);
        }

  Parameters:
    the - resource to register.

getHelpURL

     public String getHelpURL()

  Get this resource's help url.

  Returns:
    An URL, encoded as a String, or null if not available.
  Overrides:
    getHelpURL in class Resource

getHelpURL

     public String getHelpURL(String topic)

  Get the help URL for that resource's attribute.

  Parameters:
    topic - The topic (can be an attribute name, or a property, etc).
  Returns:
    A String encoded URL, or null.
  Overrides:
    getHelpURL in class Resource

attributeChanged

     public void attributeChanged(AttributeChangedEvent evt)

  Listen its resource.

  Overrides:
    attributeChanged in class ResourceFrame

setValue

     public synchronized void setValue(int idx,
                                       Object value)

  Catch setValue, to maintain cached header values correctness.

  Parameters:
    idx - The index of the attribute to be set.
    value - The new value for the attribute.
  Overrides:
    setValue in class ResourceFrame

getURL

     public URL getURL(Request request)

  Get the full URL for that resource.

  Returns:
    An URL instance.

getQuality

     public double getQuality()

  Get this resource quality.

  Returns:
    The resource quality, or some negative value if not defined.

getTitle

     public String getTitle()

  Get this resource title.

  Returns:
    This resource's title, or null if not defined.

getContentLanguage

     public String getContentLanguage()

  Get this resource content language. Language are stored as a comma separated String of tokens.

  Returns:
    A comma separated string of language tokens, or null if undefined.

getContentEncoding

     public String getContentEncoding()

  Get this resource content encoding. The content encoding of a resource is stored as a comma separated list of tokens (as decribed in the Content_encoding header of the HTTP specification, and in the order they should appear in the header).

  Returns:
    A string of comma separated encoding tokens, or null if not defined.

getContentType

     public MimeType getContentType()

  Get this resource content type.

  Returns:
    An instance of MIMEType, or null if not defined.

getContentLength

     public int getContentLength()

  Get this resource content length.

  Returns:
    The resource content length, or -1 if not defined.

getIcon

     public String getIcon()

  Get this resource's icon.

getMaxAge

     public long getMaxAge()

  Get this resource's max age. The max age of a resource indicates how much drift is allowed between the physicall version of the resource, and any in-memory cached version of it.

  The max age attribute is a long number giving the number of milliseconds of allowed drift.

getPutableFlag

     public boolean getPutableFlag()

  Get the PUT'able flag (are we allow to PUT to the resource ?)

getMD5Flag

     public boolean getMD5Flag()

  Do we send the MD5 digest?

getAllowDeleteFlag

     public boolean getAllowDeleteFlag()

  delete allowed for the associated resource ?

handleRangeRequest

     public Reply handleRangeRequest(Request request,
                                     HttpRange r) throws ProtocolException

  handles a Range Request

  Parameters:
    request, - the request
    r, - the HttpRange
  Returns:
    a Reply if range is valid, or null if there is a change in the resource, or if the HttpRange is not valid ( 4-2, for example).
  Throws: ProtocolException
    If processsing the request failed.

getBrowsableFlag

     public boolean getBrowsableFlag()

  Get this class browsable flag.

getStyleSheetURL

     public String getStyleSheetURL()

  Get this frame style sheet link

getIconDirectory

     public String getIconDirectory()

  Get the optional icon directory.

getRelocateFlag

     public boolean getRelocateFlag()

  Should we relocate invalid requests to this directory.

  Returns:
    A boolean true if we should relocate.

getIndex

     public String getIndex()

  Get the optinal index name for this directory listing.

  Returns:
    The name of the resource responsible to list that container.

addStyleSheet

     public void addStyleSheet(HtmlGenerator g)

  Add our own Style Sheet to the HtmlGenerator.

  Parameters:
    g - The HtmlGenerator.

getDirectoryListing

     public synchronized Reply getDirectoryListing(Request request) throws ProtocolException, ResourceException

  Reply with an HTML doc listing the resources of this directory. This function takes special care not to regenerate a directory listing when one is available. It also caches the date of the directory listing, so that it can win big with NOT_MODIFIED.

  Using a modem, I know that each place I can reply with an NOT_MODIFIED, is a big win.

  Parameters:
    request - The request to handle.
  Throws: ProtocolException
    If processsing the request failed.
  Throws: ResourceException
    If the resource got a fatal error.

updateCachedHeaders

     protected void updateCachedHeaders()

  Update the cached headers value. Each resource maintains a set of cached values for headers, this allows for a nice sped-up in headers marshalling, which - as the complexity of the protocol increases - becomes a bottleneck.

createDefaultReply

     public Reply createDefaultReply(Request request,
                                     int status)

  Create a reply to answer to request on this file. This method will create a suitable reply (matching the given request) and will set all its default header values to the appropriate values.

  Parameters:
    request - The request to make a reply for.
  Returns:
    An instance of Reply, suited to answer this request.

checkIfMatch

     public int checkIfMatch(Request request)

  Check the `If-Match` condition of that request.

  Parameters:
    request - The request to check.
  Returns:
    An integer, either `COND_FAILED if condition was checked, but failed, `COND_OK` if condition was checked and succeeded, or 0 if the condition was not checked at all (eg because the resource or the request didn't support it).`

checkIfNoneMatch

     public int checkIfNoneMatch(Request request)

  Check the `If-None-Match` condition of that request.

  Parameters:
    request - The request to check.
  Returns:
    An integer, either `COND_FAILED if condition was checked, but failed, `COND_OK` if condition was checked and succeeded, or 0 if the condition was not checked at all (eg because the resource or the request didn't support it).`

checkIfModifiedSince

     public int checkIfModifiedSince(Request request)

  Check the `If-Modified-Since` condition of that request.

  Parameters:
    request - The request to check.
  Returns:
    An integer, either `COND_FAILED if condition was checked, but failed, `COND_OK` if condition was checked and succeeded, or 0 if the condition was not checked at all (eg because the resource or the request didn't support it).`

checkIfUnmodifiedSince

     public int checkIfUnmodifiedSince(Request request)

  Check the `If-Unmodified-Since` condition of that request.

  Parameters:
    request - The request to check.
  Returns:
    An integer, either `COND_FAILED if condition was checked, but failed, `COND_OK` if condition was checked and succeeded, or 0 if the condition was not checked at all (eg because the resource or the request didn't support it).`

lookup

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

  Lookup the target resource. Lookup filters and then resource.

  Parameters:
    ls - The current lookup state
    lr - The result
  Returns:
    true if lookup is done.
  Throws: ProtocolException
    If an error relative to the protocol occurs
  Overrides:
    lookup in class ResourceFrame
  See Also:
    lookupFilters, lookupResource

lookupResource

     protected boolean lookupResource(LookupState ls,
                                      LookupResult lr) throws ProtocolException

  Lookup the target resource (dispath to more specific lookup methods).

  Parameters:
    ls - The current lookup state
    lr - The result
  Returns:
    true if lookup is done.
  Throws: ProtocolException
    If an error relative to the protocol occurs
  See Also:
    lookupDirectory, lookupFile, lookupOther

lookupDirectory

     protected boolean lookupDirectory(LookupState ls,
                                       LookupResult lr) throws ProtocolException

  Lookup the target resource when associated with a DirectoryResource.

  Parameters:
    ls - The current lookup state
    lr - The result
  Returns:
    true if lookup is done.
  Throws: ProtocolException
    If an error relative to the protocol occurs

lookupFile

     protected boolean lookupFile(LookupState ls,
                                  LookupResult lr) throws ProtocolException

  Lookup the target resource when associated with a FileResource.

  Parameters:
    ls - The current lookup state
    lr - The result
  Returns:
    true if lookup is done.
  Throws: ProtocolException
    If an error relative to the protocol occurs

lookupOther

     protected boolean lookupOther(LookupState ls,
                                   LookupResult lr) throws ProtocolException

  Lookup the target resource when associated with an unknown resource.

  Parameters:
    ls - The current lookup state
    lr - The result
  Returns:
    true if lookup is done.
  Throws: ProtocolException
    If an error relative to the protocol occurs

checkRequest

     public boolean checkRequest(RequestInterface request)

  Check the request.

  Parameters:
    request - the incomming request.
  Returns:
    true if the request is an HTTP Request.
  Overrides:
    checkRequest in class ResourceFrame

performFrames

     protected ReplyInterface performFrames(RequestInterface request) throws ProtocolException, ResourceException

  Perform the request on all the frames of that resource. The Reply returned is the first non-null reply.

  Parameters:
    request - A RequestInterface instance.
  Returns:
    A ReplyInterface instance.
  Throws: ProtocolException
    If an error relative to the protocol occurs
  Throws: ResourceException
    If an error not relative to the protocol occurs
  Overrides:
    performFrames in class FramedResource

perform

     public ReplyInterface perform(RequestInterface req) throws ProtocolException, ResourceException

  Perform the request

  Parameters:
    req - The request to handle.
  Throws: ProtocolException
    If processsing the request failed.
  Throws: ResourceException
    If the resource got a fatal error.
  Overrides:
    perform in class ResourceFrame

get

     public Reply get(Request request) throws ProtocolException, ResourceException

  The default GET method.

  Parameters:
    request - The request to handle.
  Throws: ProtocolException
    If processsing the request failed.
  Throws: ResourceException
    If the resource got a fatal error.

getOtherResource

     protected Reply getOtherResource(Request request) throws ProtocolException, ResourceException

  The default GET method for other king of associated resource

  Parameters:
    request - The request to handle.
  Throws: ProtocolException
    If processsing the request failed.
  Throws: ResourceException
    If the resource got a fatal error.

createFileReply

     protected Reply createFileReply(Request request) throws ProtocolException, ResourceException

  Create the reply relative to the given file.

  Parameters:
    request - the incomming request.
  Returns:
    A Reply instance
  Throws: ProtocolException
    If processsing the request failed.
  Throws: ResourceException
    If the resource got a fatal error.

getFileResource

     protected Reply getFileResource(Request request) throws ProtocolException, ResourceException

  Get for FileResource

  Parameters:
    request - the incomming request.
  Returns:
    A Reply instance
  Throws: ProtocolException
    If processsing the request failed.
  Throws: ResourceException
    If the resource got a fatal error.

getDirectoryResource

     protected Reply getDirectoryResource(Request request) throws ProtocolException, ResourceException

  Perform a GET for the associated DirectoryResource.

  Parameters:
    request - the incomming request.
  Returns:
    A Reply instance.
  Throws: ProtocolException
    if request processing failed.
  Throws: ResourceException
    If the resource got a fatal error.

head

     public Reply head(Request request) throws ProtocolException, ResourceException

  The default HEAD method replies does a GET and removes entity.

  Parameters:
    request - The request to handle.
  Throws: ProtocolException
    Always thrown, to return a NOT_IMPLEMENTED error.
  Throws: ResourceException
    If the resource got a fatal error.

headOtherResource

     protected Reply headOtherResource(Request request) throws ProtocolException, ResourceException

  Perform a HEAD request for the associated resource.

  Parameters:
    request - the incomming request.
  Returns:
    A Reply instance
  Throws: ProtocolException
    If processsing the request failed.
  Throws: ResourceException
    If the resource got a fatal error.

headDirectoryResource

     protected Reply headDirectoryResource(Request request) throws ProtocolException, ResourceException

  Perform a HEAD request for the associated DirectoryResource.

  Parameters:
    request - the incomming request.
  Returns:
    A Reply instance
  Throws: ProtocolException
    If processsing the request failed.
  Throws: ResourceException
    If the resource got a fatal error.

headFileResource

     protected Reply headFileResource(Request request) throws ProtocolException, ResourceException

  Perform a HEAD request for the associated FileResource.

  Parameters:
    request - the incomming request.
  Returns:
    A Reply instance
  Throws: ProtocolException
    If processsing the request failed.
  Throws: ResourceException
    If the resource got a fatal error.

post

     public Reply post(Request request) throws ProtocolException, ResourceException

  The default POST method replies with a not implemented.

  Parameters:
    request - The request to handle.
  Throws: ProtocolException
    Always thrown, to return a NOT_IMPLEMENTED error.
  Throws: ResourceException
    If the resource got a fatal error.

put

     public Reply put(Request request) throws ProtocolException, ResourceException

  The default PUT method.

  Parameters:
    request - The request to handle.
  Throws: ProtocolException
    If processsing the request failed.
  Throws: ResourceException
    If the resource got a fatal error.

putOtherResource

     protected Reply putOtherResource(Request request) throws ProtocolException

  Always throw a ProtocolException.

  Parameters:
    request - The incmming request.
  Returns:
    a Reply instance.
  Throws: ProtocolException
    (Always thrown).

putFileResource

     protected Reply putFileResource(Request request) throws ProtocolException, ResourceException

  Change the content of the associated FileResource.

  Parameters:
    request - The incomming request.
  Throws: ProtocolException
    if a protocol error occurs
  Throws: ResourceException
    If the resource got a fatal error.

options

     public Reply options(Request request) throws ProtocolException, ResourceException

  The default OPTIONS method replies with a not implemented.

  Parameters:
    request - The request to handle.
  Throws: ProtocolException
    In case of errors.
  Throws: ResourceException
    If the resource got a fatal error.

delete

     public Reply delete(Request request) throws ProtocolException, ResourceException

  The default DELETE method, actually the resource (file, directory) is moved into the trash directory which is not accessible via HTTP.

  Parameters:
    request - The request to handle.
  Throws: ProtocolException
    If processsing the request failed.
  Throws: ResourceException
    If the resource got a fatal error.

computeTrashFile

     protected File computeTrashFile(File file)

computeTrashDir

     protected File computeTrashDir(File dir)

deleteDirectoryResource

     protected Reply deleteDirectoryResource(Request request) throws ProtocolException, ResourceException

  Perform a DELETE for the associated DirectoryResource.

  Parameters:
    request - the incomming request.
  Returns:
    A Reply instance.
  Throws: ProtocolException
    if request processing failed.
  Throws: ResourceException
    If the resource got a fatal error.

deleteFileResource

     protected Reply deleteFileResource(Request request) throws ProtocolException, ResourceException

  Perform a DELETE for the associated FileResource.

  Parameters:
    request - the incomming request.
  Returns:
    A Reply instance.
  Throws: ProtocolException
    if request processing failed.
  Throws: ResourceException
    If the resource got a fatal error.

deleteOtherResource

     protected Reply deleteOtherResource(Request request) throws ProtocolException, ResourceException

  Perform a DELETE for the associated resource.

  Parameters:
    request - the incomming request.
  Returns:
    A Reply instance.
  Throws: ProtocolException
    if request processing failed.
  Throws: ResourceException
    If the resource got a fatal error.

link

     public Reply link(Request request) throws ProtocolException, ResourceException

  The default LINK method replies with a not implemented.

  Parameters:
    request - The request to handle.
  Throws: ProtocolException
    Always thrown, to return a NOT_IMPLEMENTED error.
  Throws: ResourceException
    If the resource got a fatal error.

unlink

     public Reply unlink(Request request) throws ProtocolException, ResourceException

  The default UNLINK method replies with a not implemented.

  Parameters:
    request - The request to handle.
  Throws: ProtocolException
    Always thrown, to return a NOT_IMPLEMENTED error.
  Throws: ResourceException
    If the resource got a fatal error.

trace

     public Reply trace(Request request) throws HTTPException, ClientException

  The default TRACE method replies with a not implemented

  Parameters:
    request - The request to handle.
  Throws: HTTPException
    In case of errors.
  Throws: ClientException
    If the client instance controling the request processing got a fatal error.

extended

     public Reply extended(Request request) throws ProtocolException, ResourceException

  The handler for unknown method replies with a not implemented.

  Parameters:
    request - The request to handle.
  Throws: ProtocolException
    Always thrown, to return a NOT_IMPLEMENTED error.
  Throws: ResourceException
    If the resource got a fatal error.

getBrowseType

     protected synchronized MimeType getBrowseType()

  Get the Browse Mime type.

browse

     public Reply browse(Request request) throws ProtocolException

  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: ProtocolException
    If some error occurs.

    All Packages  Class Hierarchy  This Package  Previous  Next  Index