| |
|
| java.lang.Object org.apache.cactus.server.AbstractServletConfigWrapper
All known Subclasses: org.apache.cactus.server.ServletConfigWrapper,
AbstractServletConfigWrapper | abstract public class AbstractServletConfigWrapper implements ServletConfig(Code) | | Abstract wrapper around ServletConfig which overrides the
getServletContext() method to return our own wrapper around
ServletContext . This class provides a common implementation
of the wrapper for the different servlet API.
version: $Id: AbstractServletConfigWrapper.java 239054 2004-10-24 01:30:23Z felipeal $ |
initParameters | protected Hashtable initParameters(Code) | | List of parameters set using the setInitParameter() method.
|
servletName | protected String servletName(Code) | | Simulated name of the servlet
|
AbstractServletConfigWrapper | public AbstractServletConfigWrapper(ServletConfig theOriginalConfig)(Code) | | Parameters: theOriginalConfig - the original servlet config object |
getInitParameter | public String getInitParameter(String theName)(Code) | | Parameters: theName - the name of the parameter's value to return the value of the parameter, looking for it first in the list ofparameters set using the setInitParameter() methodand then in those set in web.xml . |
getInitParameterNames | public Enumeration getInitParameterNames()(Code) | | the union of the parameters defined in the Redirectorweb.xml file and the one set using thesetInitParameter() method. |
getOriginalConfig | public ServletConfig getOriginalConfig()(Code) | | the original unmodified config object since: 1.5 |
getServletContext | public ServletContext getServletContext()(Code) | | our own wrapped servlet context object |
getServletName | public String getServletName()(Code) | | the simulated servlet's name if defined or the redirectorservlet's name |
setInitParameter | public void setInitParameter(String theName, String theValue)(Code) | | Sets a parameter as if it were set in the web.xml file.
Parameters: theName - the parameter's name Parameters: theValue - the parameter's value |
setServletName | public void setServletName(String theServletName)(Code) | | Sets the servlet name. That will be the value returned by the
getServletName() method.
Parameters: theServletName - the servlet's name |
|
|
|