The ServletWrapper reference manual

All resources All frames

# ServletWrapper

This resource allows you to embed Servlets in Jigsaw. The ServletWrapper resource works in conjunction with a DirectoryResource (or a subclass) associated with a ServletDirectoryFrame , that acts as a context for a set of related servlets. You can install multiple servlet directory resources within the same Jigsaw process. The servletWrapper auto register a ServletWrapperFrame.

To install a servlet within Jigsaw, you need to install an instance of the ServletWrapper resource in the Jigsaw URL space, and then configure it and tell it what servlet class it should embed (by using the servlet-class parameter).

## Inherits

The ServletWrapper class inerits from the following classes:

- Resource
- FramedResource

## Attributes description

The ServletWrapper defines the following attributes:

- servlet-class
- servlet-parameters
- auto-reload
- servlet-timeout

`servlet-class`

semantics
  The name of the main class for the servlet. That name should resolve to a subclass of java.servlet.Servlet. The servlet wrapper will only run the servlet when doable, it will otherwise (when the servlet class is not instantiable, or some other servlet initialization error occurs) emit an error message back to the client and report the problem in Jigsaw's main error log.
type
  This attribute is an editable StringAttribute
default value
  This attribute defaults to null.

`servlet-parameters`

semantics
  This attribute lists the servlet initialization parameters. Each attribute has a name and a value, both of them are instances of String.
type
  This attribute is an editable PropertiesAttribute
default value
  This attribute defaults to null.

`auto-reload`

semantics
  Should this wrapper reload modified servlet class?
type
  This attribute is an editable BooleanAttribute
default value
  This attribute defaults to true.

`servlet-timeout`

semantics
  Max idle time before a servlet is destroyed (in milliseconds), the servlet will never be destroyed if equals to -1.
type
  This attribute is an editable LongAttribute
default value
  This attribute defaults to null.

Jigsaw Team
$Id: org.w3c.jigsaw.servlet.ServletWrapper.html,v 1.3 1998/03/27 08:23:42 bmahe Exp $