|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.mock.web.MockFilterConfig
public class MockFilterConfig
Mock implementation of the FilterConfig
interface.
Used for testing the web framework; also usefol for testing
custom Filter
implementations.
MockFilterChain
,
PassThroughFilterChain
Constructor Summary | |
---|---|
MockFilterConfig()
Create a new MockFilterConfig with a default MockServletContext . |
|
MockFilterConfig(javax.servlet.ServletContext servletContext)
Create a new MockFilterConfig. |
|
MockFilterConfig(javax.servlet.ServletContext servletContext,
java.lang.String filterName)
Create a new MockFilterConfig. |
|
MockFilterConfig(java.lang.String filterName)
Create a new MockFilterConfig with a default MockServletContext . |
Method Summary | |
---|---|
void |
addInitParameter(java.lang.String name,
java.lang.String value)
|
java.lang.String |
getFilterName()
|
java.lang.String |
getInitParameter(java.lang.String name)
|
java.util.Enumeration |
getInitParameterNames()
|
javax.servlet.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(java.lang.String filterName)
MockServletContext
.
filterName
- the name of the filterpublic MockFilterConfig(javax.servlet.ServletContext servletContext)
servletContext
- the ServletContext that the servlet runs inpublic MockFilterConfig(javax.servlet.ServletContext servletContext, java.lang.String filterName)
servletContext
- the ServletContext that the servlet runs infilterName
- the name of the filterMethod Detail |
---|
public java.lang.String getFilterName()
getFilterName
in interface javax.servlet.FilterConfig
public javax.servlet.ServletContext getServletContext()
getServletContext
in interface javax.servlet.FilterConfig
public void addInitParameter(java.lang.String name, java.lang.String value)
public java.lang.String getInitParameter(java.lang.String name)
getInitParameter
in interface javax.servlet.FilterConfig
public java.util.Enumeration getInitParameterNames()
getInitParameterNames
in interface javax.servlet.FilterConfig
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |