|
Wrapper (Catalina Internal API Documentation)
org.apache.catalina
|
Field Summary |
Fields inherited from interface org.apache.catalina.Container |
ADD_CHILD_EVENT, ADD_MAPPER_EVENT, ADD_VALVE_EVENT, REMOVE_CHILD_EVENT, REMOVE_MAPPER_EVENT, REMOVE_VALVE_EVENT |
Method Summary | |
void |
addInitParameter(java.lang.String name,
java.lang.String value)
Add a new servlet initialization parameter for this servlet. |
void |
addInstanceListener(InstanceListener listener)
Add a new listener interested in InstanceEvents. |
void |
addSecurityReference(java.lang.String name,
java.lang.String link)
Add a new security role reference record to the set of records for this servlet. |
javax.servlet.Servlet |
allocate()
Allocate an initialized instance of this Servlet that is ready to have its service() method called. |
void |
deallocate(javax.servlet.Servlet servlet)
Return this previously allocated servlet to the pool of available instances. |
java.lang.String |
findInitParameter(java.lang.String name)
Return the value for the specified initialization parameter name, if any; otherwise return null . |
java.lang.String[] |
findInitParameters()
Return the names of all defined initialization parameters for this servlet. |
java.lang.String |
findSecurityReference(java.lang.String name)
Return the security role link for the specified security role reference name, if any; otherwise return null . |
java.lang.String[] |
findSecurityReferences()
Return the set of security role reference names associated with this servlet, if any; otherwise return a zero-length array. |
long |
getAvailable()
Return the available date/time for this servlet, in milliseconds since the epoch. |
java.lang.String |
getJspFile()
Return the context-relative URI of the JSP file for this servlet. |
int |
getLoadOnStartup()
Return the load-on-startup order value (negative value means load on first call). |
java.lang.String |
getRunAs()
Return the run-as identity for this servlet. |
java.lang.String |
getServletClass()
Return the fully qualified servlet class name for this servlet. |
boolean |
isUnavailable()
Is this servlet currently unavailable? |
void |
load()
Load and initialize an instance of this servlet, if there is not already at least one initialized instance. |
void |
removeInitParameter(java.lang.String name)
Remove the specified initialization parameter from this servlet. |
void |
removeInstanceListener(InstanceListener listener)
Remove a listener no longer interested in InstanceEvents. |
void |
removeSecurityReference(java.lang.String name)
Remove any security role reference for the specified role name. |
void |
setAvailable(long available)
Set the available date/time for this servlet, in milliseconds since the epoch. |
void |
setJspFile(java.lang.String jspFile)
Set the context-relative URI of the JSP file for this servlet. |
void |
setLoadOnStartup(int value)
Set the load-on-startup order value (negative value means load on first call). |
void |
setRunAs(java.lang.String runAs)
Set the run-as identity for this servlet. |
void |
setServletClass(java.lang.String servletClass)
Set the fully qualified servlet class name for this servlet. |
void |
unavailable(javax.servlet.UnavailableException unavailable)
Process an UnavailableException, marking this servlet as unavailable for the specified amount of time. |
void |
unload()
Unload all initialized instances of this servlet, after calling the destroy() method for each instance. |
Methods inherited from interface org.apache.catalina.Container |
addChild, addContainerListener, addMapper, addPropertyChangeListener, findChild, findChildren, findMapper, findMappers, getCluster, getInfo, getLoader, getLogger, getManager, getName, getParent, getParentClassLoader, getRealm, getResources, invoke, map, removeChild, removeContainerListener, removeMapper, removePropertyChangeListener, setCluster, setLoader, setLogger, setManager, setName, setParent, setParentClassLoader, setRealm, setResources |
Method Detail |
public long getAvailable()
public void setAvailable(long available)
available
- The new available date/timepublic java.lang.String getJspFile()
public void setJspFile(java.lang.String jspFile)
jspFile
- JSP file URIpublic int getLoadOnStartup()
public void setLoadOnStartup(int value)
value
- New load-on-startup valuepublic java.lang.String getRunAs()
public void setRunAs(java.lang.String runAs)
public java.lang.String getServletClass()
public void setServletClass(java.lang.String servletClass)
servletClass
- Servlet class namepublic boolean isUnavailable()
public void addInitParameter(java.lang.String name, java.lang.String value)
name
- Name of this initialization parameter to addvalue
- Value of this initialization parameter to addpublic void addInstanceListener(InstanceListener listener)
listener
- The new listenerpublic void addSecurityReference(java.lang.String name, java.lang.String link)
name
- Role name used within this servletlink
- Role name used within the web applicationpublic javax.servlet.Servlet allocate() throws javax.servlet.ServletException
service()
method called. If the servlet class does
not implement SingleThreadModel
, the (only) initialized
instance may be returned immediately. If the servlet class implements
SingleThreadModel
, the Wrapper implementation must ensure
that this instance is not allocated again until it is deallocated by a
call to deallocate()
.
javax.servlet.ServletException
- if the servlet init() method threw
an exception
javax.servlet.ServletException
- if a loading error occurspublic void deallocate(javax.servlet.Servlet servlet) throws javax.servlet.ServletException
servlet
- The servlet to be returned
javax.servlet.ServletException
- if a deallocation error occurspublic java.lang.String findInitParameter(java.lang.String name)
null
.
name
- Name of the requested initialization parameterpublic java.lang.String[] findInitParameters()
public java.lang.String findSecurityReference(java.lang.String name)
null
.
name
- Security role reference used within this servletpublic java.lang.String[] findSecurityReferences()
public void load() throws javax.servlet.ServletException
javax.servlet.ServletException
- if the servlet init() method threw
an exception
javax.servlet.ServletException
- if some other loading problem occurspublic void removeInitParameter(java.lang.String name)
name
- Name of the initialization parameter to removepublic void removeInstanceListener(InstanceListener listener)
listener
- The listener to removepublic void removeSecurityReference(java.lang.String name)
name
- Security role used within this servlet to be removedpublic void unavailable(javax.servlet.UnavailableException unavailable)
unavailable
- The exception that occurred, or null
to mark this servlet as permanently unavailablepublic void unload() throws javax.servlet.ServletException
destroy()
method for each instance. This can be used,
for example, prior to shutting down the entire servlet engine, or
prior to reloading all of the classes from the Loader associated with
our Loader's repository.
javax.servlet.ServletException
- if an unload error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |