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

Variable Index

 o STATE_EXTRA_PATH
 o wrapper

Constructor Index

 o ServletWrapperFrame()

Method Index

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

Variables

 o STATE_EXTRA_PATH
 public static final String STATE_EXTRA_PATH
 o wrapper
 protected ServletWrapper wrapper

Constructors

 o ServletWrapperFrame
 public ServletWrapperFrame()

Methods

 o registerResource
 public void registerResource(FramedResource resource)
Register our resource. Must be an instance of ServletWrapper.

Overrides:
registerResource in class HTTPFrame
 o 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
 o perform
 public ReplyInterface perform(RequestInterface req) throws ProtocolException, ResourceException
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.
Throws: ResourceException
If the resource got a fatal error.
Overrides:
perform in class HTTPFrame
 o 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