public class MockBaseConfig
extends java.lang.Object
Constructor and Description |
---|
MockBaseConfig() |
Modifier and Type | Method and Description |
---|---|
void |
addAllInitParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
Adds all the values in the provided Map to the set of init parameters.
|
void |
addInitParameter(java.lang.String name,
java.lang.String value)
Adds a value to the set of init parameters.
|
java.lang.String |
getInitParameter(java.lang.String name)
Gets the named init parameter if it exists, or null if it doesn't.
|
java.util.Enumeration<java.lang.String> |
getInitParameterNames()
Gets an enumeration of all the init parameter names present.
|
javax.servlet.ServletContext |
getServletContext()
Gets the ServletContext in whiich the filter is running.
|
void |
setServletContext(javax.servlet.ServletContext ctx)
Sets the ServletContext that will be returned by getServletContext().
|
public void setServletContext(javax.servlet.ServletContext ctx)
public javax.servlet.ServletContext getServletContext()
public void addInitParameter(java.lang.String name, java.lang.String value)
public void addAllInitParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
public java.lang.String getInitParameter(java.lang.String name)
public java.util.Enumeration<java.lang.String> getInitParameterNames()
? Copyright 2005-2006, Stripes Development Team.