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 lookupOther(LookupState, LookupResult)
Jigsaw's lookup on servlets.
 o perform(RequestInterface)
Dispatch the give request to our servlet.
 o registerResource(FramedResource)
Register a target 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 a target resource.

Overrides:
registerResource in class HTTPFrame
 o 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
 o lookupOther
 public 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