    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

##

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

##

RemoteServletWrapper()

##

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

##

ATTR_SERVLET_BASE

     protected static int ATTR_SERVLET_BASE

  Attribute index - The servlet content base.

loader

     protected ServletLoader loader

  The ServletLoader instance for loading that servlet.

##

RemoteServletWrapper

     public RemoteServletWrapper()

##

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

getServletLoader

     protected synchronized ServletLoader getServletLoader()

  Get or create a suitable ServletLoader instance to load that servlet.

  Returns:
    A ServletLoader instance.

getServletBase

     public String getServletBase()

  Get the remote servlet URL base.

  Returns:
    The String encoded base URL for that servlet, or null if undefined.

setValue

     public void setValue(int idx,
                          Object value)

  Catch assignements to the servlet class name attribute.

  Overrides:
    setValue in class ServletWrapper

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