| java.lang.Object servletunit.ServletConfigSimulator
ServletConfigSimulator | public class ServletConfigSimulator implements ServletConfig(Code) | | This class simulates a ServletConfig.
|
ServletConfigSimulator | public ServletConfigSimulator()(Code) | | |
getInitParameter | public String getInitParameter(String name)(Code) | | Returns a String containing the value of the
named initialization parameter, or null if
the parameter does not exist.
Parameters: name - a String specifying the nameof the initialization parameter a String containing the valueof the initialization parameter |
getInitParameterNames | public Enumeration getInitParameterNames()(Code) | | Returns the names of the servlet's initialization parameters
as an Enumeration of String objects,
or an empty Enumeration if the servlet has
no initialization parameters.
an Enumeration of String objects containing the names of the servlet'sinitialization parameters |
getServletName | public String getServletName()(Code) | | Returns the name of this servlet instance.
The name may be provided via server administration, assigned in the
web application deployment descriptor, or for an unregistered (and thus
unnamed) servlet instance it will be the servlet's class name.
the String "ActionServlet" |
setInitParameter | public void setInitParameter(String key, String value)(Code) | | Sets a named initialization parameter with the supplied
String value.
Parameters: key - a String specifying the nameof the initialization parameter Parameters: value - a String value for this initializationparameter |
|
|