All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.w3c.jigsaw.tutorials.FancyFrame

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
                                                   |
                                                   +----org.w3c.jigsaw.tutorials.FancyFrame

public class FancyFrame
extends HTTPFrame

Variable Index

 o ATTR_MESSAGE
Attribute index - Message to display

Constructor Index

 o FancyFrame()

Method Index

 o getDirectoryResource(Request)
Display the Frame message and some attributes of our associated DirectoryResource.
 o getFileResource(Request)
Display the Frame message and some attributes of our associated FileResource.
 o getMessage()
Get the message.
 o getOtherResource(Request)
Display the Frame message and some attributes of our associated Resource.

Variables

 o ATTR_MESSAGE
 protected static int ATTR_MESSAGE
Attribute index - Message to display

Constructors

 o FancyFrame
 public FancyFrame()

Methods

 o getMessage
 public String getMessage()
Get the message.

Returns:
A String instance.
 o getFileResource
 protected Reply getFileResource(Request request) throws ProtocolException, ResourceException
Display the Frame message and some attributes of our associated FileResource. This method is called only if our associated resource *is* a FileResource.

Parameters:
request - The request to handle.
Returns:
A Reply instance.
Throws: ProtocolException
if processing the request failed
Throws: ResourceException
if an internal error occurs
Overrides:
getFileResource in class HTTPFrame
 o getDirectoryResource
 protected Reply getDirectoryResource(Request request) throws ProtocolException, ResourceException
Display the Frame message and some attributes of our associated DirectoryResource. This method is called only if our associated resource *is* a DirectoryResource.

Parameters:
request - The request to handle.
Returns:
A Reply instance.
Throws: ProtocolException
if processing the request failed
Throws: ResourceException
if an internal error occurs
Overrides:
getDirectoryResource in class HTTPFrame
 o getOtherResource
 protected Reply getOtherResource(Request request) throws ProtocolException, ResourceException
Display the Frame message and some attributes of our associated Resource. This method is called if the associated resource has been registered with registerOtherResource or if it's not a usual resource (FileResource, DirectoryResource)

Parameters:
request - The request to handle.
Returns:
A Reply instance.
Throws: ProtocolException
if processing the request failed
Throws: ResourceException
if an internal error occurs
Overrides:
getOtherResource in class HTTPFrame

All Packages  Class Hierarchy  This Package  Previous  Next  Index