|
|||||||||
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; also useful for testing
custom Filter
implementations.
MockFilterChain
,
PassThroughFilterChain
Constructor Summary | |
---|---|
MockFilterConfig()
Create a new MockFilterConfig with a default MockServletContext . |
|
MockFilterConfig(ServletContext servletContext)
Create a new MockFilterConfig. |
|
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<String> |
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()
MockServletContext
.
public MockFilterConfig(String filterName)
MockServletContext
.
filterName
- the name of the filterpublic MockFilterConfig(ServletContext servletContext)
servletContext
- the ServletContext that the servlet runs inpublic MockFilterConfig(ServletContext servletContext, String filterName)
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<String> getInitParameterNames()
getInitParameterNames
in interface FilterConfig
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |