|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.chain.web.servlet.MockServletConfig
public class MockServletConfig
Mock ServletConfig
implementation.
Constructor Summary | |
---|---|
MockServletConfig()
Default Constructor. |
|
MockServletConfig(String servletName)
Construct an instance with the specified name. |
|
MockServletConfig(String servletName,
ServletContext servletContext)
Construct an instance with the specified name and context. |
Method Summary | |
---|---|
String |
getInitParameter(String name)
Get a specified init parameter. |
Enumeration |
getInitParameterNames()
Get the init parameter names. |
ServletContext |
getServletContext()
Get the servlet context. |
String |
getServletName()
Return the servlet name. |
void |
setInitParameter(String name,
String value)
Set a specified init parameter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MockServletConfig()
public MockServletConfig(String servletName)
servletName
- the servlet namepublic MockServletConfig(String servletName, ServletContext servletContext)
servletName
- the servlet nameservletContext
- the servlet contextMethod Detail |
---|
public String getInitParameter(String name)
getInitParameter
in interface ServletConfig
name
- parameter name
public Enumeration getInitParameterNames()
getInitParameterNames
in interface ServletConfig
public ServletContext getServletContext()
getServletContext
in interface ServletConfig
public String getServletName()
getServletName
in interface ServletConfig
public void setInitParameter(String name, String value)
name
- parameter namevalue
- the parameter value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |