    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class org.w3c.jigsaw.servlet.ServletWrapperFrame

    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.servlet.ServletWrapperFrame

public class ServletWrapperFrame
extends HTTPFrame

##

STATE_EXTRA_PATH
wrapper

##

ServletWrapperFrame()

##

createDefaultReply(Request, int)
  Create a reply to answer to request on this file.
lookupOther(LookupState, LookupResult)
  Jigsaw's lookup on servlets.
perform(RequestInterface)
  Dispatch the give request to our servlet.
registerResource(FramedResource)
  Register our resource.

##

STATE_EXTRA_PATH

     public static final String STATE_EXTRA_PATH

wrapper

     protected ServletWrapper wrapper

##

ServletWrapperFrame

     public ServletWrapperFrame()

##

registerResource

     public void registerResource(FramedResource resource)

  Register our resource. Must be an instance of ServletWrapper.

  Overrides:
    registerResource in class HTTPFrame

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. The reply will not have LastModified field setted.

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

perform

     public ReplyInterface perform(RequestInterface req) throws ProtocolException, NotAProtocolException

  Dispatch the give request to our servlet.

  If the servlet cannot be inititalized, we just throw an error message otherwise, we just delegate that request processing to the underlying servlet instance.

  Parameters:
    request - The request to be processed.
  Throws: ProtocolException
    If the wrapped servlet is not initialized.
  Overrides:
    perform in class HTTPFrame

lookupOther

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

  Jigsaw's lookup on servlets. Once here, we have reached a leaf servlet (or at least the remaining lookup is to be done at the servlet itself). We keep track of the path info and mark that servlet as the target of request.

  Parameters:
    ls - The lookup state.
    lr - The lookup result.
  Throws: ProtocolException
    If some error occurs.
  Overrides:
    lookupOther in class HTTPFrame

    All Packages  Class Hierarchy  This Package  Previous  Next  Index