Method Summary |
|
public void | addChild(Container child) Refuse to add a child Container, because Wrappers are the lowest level
of the Container hierarchy. |
protected void | addDefaultMapper(String mapperClass) Add a default Mapper implementation if none have been configured
explicitly. |
public void | addInitParameter(String name, String value) Add a new servlet initialization parameter for this servlet. |
public void | addInstanceListener(InstanceListener listener) Add a new listener interested in InstanceEvents. |
public void | addMapping(String mapping) Add a mapping associated with the Wrapper. |
public void | addSecurityReference(String name, String link) Add a new security role reference record to the set of records for
this servlet. |
public Servlet | allocate() Allocate an initialized instance of this Servlet that is ready to have
its service() method called. |
public void | deallocate(Servlet servlet) Return this previously allocated servlet to the pool of available
instances. |
public String | findInitParameter(String name) Return the value for the specified initialization parameter name,
if any; otherwise return null . |
public String[] | findInitParameters() Return the names of all defined initialization parameters for this
servlet. |
public Wrapper | findMappingObject() FIXME: Fooling introspection ... |
public String[] | findMappings() Return the mappings associated with this wrapper. |
public String | findSecurityReference(String name) Return the security role link for the specified security role
reference name, if any; otherwise return null . |
public String[] | findSecurityReferences() Return the set of security role reference names associated with
this servlet, if any; otherwise return a zero-length array. |
public long | getAvailable() Return the available date/time for this servlet, in milliseconds since
the epoch. |
public int | getClassLoadTime() |
public int | getCountAllocated() Return the number of active allocations of this servlet, even if they
are all for the same instance (as will be true for servlets that do
not implement SingleThreadModel . |
public int | getDebug() Return the debugging detail level for this component. |
public String | getEngineName() |
public int | getErrorCount() |
public String | getInfo() Return descriptive information about this Container implementation and
the corresponding version number, in the format
<description>/<version> . |
public String | getInitParameter(String name) Return the initialization parameter value for the specified name,
if any; otherwise return null . |
public Enumeration | getInitParameterNames() Return the set of initialization parameter names defined for this
servlet. |
public InstanceSupport | getInstanceSupport() Return the InstanceSupport object for this Wrapper instance. |
public String | getJspFile() Return the context-relative URI of the JSP file for this servlet. |
public int | getLoadOnStartup() Return the load-on-startup order value (negative value means
load on first call). |
public String | getLoadOnStartupString() |
public long | getLoadTime() |
public int | getMaxInstances() Return maximum number of instances that will be allocated when a single
thread model servlet is used. |
public long | getMaxTime() |
public long | getMinTime() |
public long | getProcessingTime() |
public int | getRequestCount() |
public String | getRunAs() Return the run-as identity for this servlet. |
public String | getServletClass() Return the fully qualified servlet class name for this servlet. |
public ServletContext | getServletContext() Return the servlet context with which this servlet is associated. |
public String | getServletName() Return the name of this servlet. |
public void | incrementErrorCount() Increment the error count used for monitoring. |
public boolean | isEventProvider() |
public boolean | isSingleThreadModel() Return true if the servlet class represented by this
component implements the SingleThreadModel interface. |
public boolean | isStateManageable() |
public boolean | isStatisticsProvider() |
public boolean | isUnavailable() |
public synchronized void | load() Load and initialize an instance of this servlet, if there is not already
at least one initialized instance. |
public synchronized Servlet | loadServlet() Load and initialize an instance of this servlet, if there is not already
at least one initialized instance. |
protected String | logName() Log the abbreviated name of this Container for logging messages. |
protected void | registerJMX(StandardContext ctx) |
public void | removeInitParameter(String name) Remove the specified initialization parameter from this servlet. |
public void | removeInstanceListener(InstanceListener listener) Remove a listener no longer interested in InstanceEvents. |
public void | removeMapping(String mapping) Remove a mapping associated with the wrapper. |
public void | removeSecurityReference(String name) Remove any security role reference for the specified role name. |
public void | setAvailable(long available) Set the available date/time for this servlet, in milliseconds since the
epoch. |
public void | setDebug(int debug) Set the debugging detail level for this component. |
public void | setErrorCount(int errorCount) |
public void | setJspFile(String jspFile) Set the context-relative URI of the JSP file for this servlet. |
public void | setLoadOnStartup(int value) Set the load-on-startup order value (negative value means
load on first call). |
public void | setLoadOnStartupString(String value) Set the load-on-startup order value from a (possibly null) string. |
public void | setLoadTime(long loadTime) |
public void | setMaxInstances(int maxInstances) Set the maximum number of instances that will be allocated when a single
thread model servlet is used. |
public void | setMaxTime(long maxTime) |
public void | setMinTime(long minTime) |
public void | setParent(Container container) Set the parent Container of this Wrapper, but only if it is a Context. |
public void | setProcessingTime(long processingTime) |
public void | setRequestCount(int requestCount) |
public void | setRunAs(String runAs) Set the run-as identity for this servlet. |
public void | setServletClass(String servletClass) Set the fully qualified servlet class name for this servlet. |
public void | setServletName(String name) Set the name of this servlet. |
public void | start() Start this component, pre-loading the servlet if the load-on-startup
value is set appropriately. |
public void | stop() Stop this component, gracefully shutting down the servlet if it has
been initialized. |
public String | toString() Return a String representation of this component. |
public void | unavailable(UnavailableException unavailable) Process an UnavailableException, marking this servlet as unavailable
for the specified amount of time. |
public synchronized void | unload() Unload all initialized instances of this servlet, after calling the
destroy() method for each instance. |