|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.mock.web.MockFilterConfig
public class MockFilterConfig
Mock implementation of the FilterConfig
interface.
Used for testing the web framework; typically not necessary for testing application controllers.
Constructor Summary | |
---|---|
MockFilterConfig()
Create a new MockFilterConfig with a default MockServletContext . |
|
MockFilterConfig(ServletContext servletContext)
Create a new MockFilterConfig with empty String as name. |
|
MockFilterConfig(ServletContext servletContext,
String filterName)
Create a new MockFilterConfig . |
|
MockFilterConfig(String filterName)
Create a new MockFilterConfig with a default MockServletContext . |
Method Summary | |
---|---|
void |
addInitParameter(String name,
String value)
|
String |
getFilterName()
|
String |
getInitParameter(String name)
|
Enumeration |
getInitParameterNames()
|
ServletContext |
getServletContext()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MockFilterConfig()
MockFilterConfig
with a default MockServletContext
.
public MockFilterConfig(ServletContext servletContext)
MockFilterConfig
with empty String as name.
servletContext
- the ServletContext that the servlet runs inpublic MockFilterConfig(String filterName)
MockFilterConfig
with a default MockServletContext
.
filterName
- the name of the filterpublic MockFilterConfig(ServletContext servletContext, String filterName)
MockFilterConfig
.
servletContext
- the ServletContext that the servlet runs infilterName
- the name of the filterMethod Detail |
---|
public String getFilterName()
getFilterName
in interface FilterConfig
public ServletContext getServletContext()
getServletContext
in interface FilterConfig
public void addInitParameter(String name, String value)
public String getInitParameter(String name)
getInitParameter
in interface FilterConfig
public Enumeration getInitParameterNames()
getInitParameterNames
in interface FilterConfig
|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |