All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.w3c.jigsaw.servlet.RemoteServletWrapper

java.lang.Object
   |
   +----org.w3c.tools.resources.AttributeHolder
           |
           +----org.w3c.tools.resources.Resource
                   |
                   +----org.w3c.tools.resources.FramedResource
                           |
                           +----org.w3c.jigsaw.servlet.ServletWrapper
                                   |
                                   +----org.w3c.jigsaw.servlet.RemoteServletWrapper

public class RemoteServletWrapper
extends ServletWrapper

Variable Index

 o ATTR_SERVLET_BASE
Attribute index - The servlet content base.
 o loader
The ServletLoader instance for loading that servlet.

Constructor Index

 o RemoteServletWrapper()

Method Index

 o checkServlet()
Check the servlet class, ans try to initialize it.
 o getServletBase()
Get the remote servlet URL base.
 o getServletLoader()
Get or create a suitable ServletLoader instance to load that servlet.
 o launchServlet()
Initialize the servlet.
 o setValue(int, Object)
Catch assignements to the servlet class name attribute.

Variables

 o ATTR_SERVLET_BASE
 protected static int ATTR_SERVLET_BASE
Attribute index - The servlet content base.

 o loader
 protected ServletLoader loader
The ServletLoader instance for loading that servlet.

Constructors

 o RemoteServletWrapper
 public RemoteServletWrapper()

Methods

 o checkServlet
 protected void checkServlet() throws ClassNotFoundException, ServletException
Check the servlet class, ans try to initialize it.

Throws: ClassNotFoundException
if servlet class can't be found.
Throws: ServletException
if servlet can't be initialized.
Overrides:
checkServlet in class ServletWrapper
 o getServletLoader
 protected synchronized ServletLoader getServletLoader()
Get or create a suitable ServletLoader instance to load that servlet.

Returns:
A ServletLoader instance.
 o getServletBase
 public String getServletBase()
Get the remote servlet URL base.

Returns:
The String encoded base URL for that servlet, or null if undefined.
 o setValue
 public void setValue(int idx,
                      Object value)
Catch assignements to the servlet class name attribute.

Overrides:
setValue in class ServletWrapper
 o launchServlet
 protected boolean launchServlet() throws ClassNotFoundException, ServletException
Initialize the servlet.

Throws: ClassNotFoundException
if servlet class can't be found.
Throws: ServletException
if servlet can't be initialized.
Overrides:
launchServlet in class ServletWrapper

All Packages  Class Hierarchy  This Package  Previous  Next  Index