|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.stripes.mock.MockBaseConfig
public class MockBaseConfig
Common parent class for both MockServletConfig and MockFilterConfig since they are both essentially the same with a couple of method names changed.
Constructor Summary | |
---|---|
MockBaseConfig()
|
Method Summary | |
---|---|
void |
addAllInitParameters(Map<String,String> parameters)
Adds all the values in the provided Map to the set of init parameters. |
void |
addInitParameter(String name,
String value)
Adds a value to the set of init parameters. |
String |
getInitParameter(String name)
Gets the named init parameter if it exists, or null if it doesn't. |
Enumeration<String> |
getInitParameterNames()
Gets an enumeration of all the init parameter names present. |
ServletContext |
getServletContext()
Gets the ServletContext in whiich the filter is running. |
void |
setServletContext(ServletContext ctx)
Sets the ServletContext that will be returned by getServletContext(). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MockBaseConfig()
Method Detail |
---|
public void setServletContext(ServletContext ctx)
public ServletContext getServletContext()
public void addInitParameter(String name, String value)
public void addAllInitParameters(Map<String,String> parameters)
public String getInitParameter(String name)
public Enumeration<String> getInitParameterNames()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |