    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

##

ATTR_MESSAGE
  Attribute index - Message to display

##

FancyFrame()

##

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

##

ATTR_MESSAGE

     protected static int ATTR_MESSAGE

  Attribute index - Message to display

##

FancyFrame

     public FancyFrame()

##

getMessage

     public String getMessage()

  Get the message.

  Returns:
    A String instance.

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

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

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