|
|||||||||
| 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 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 in
public MockFilterConfig(ServletContext servletContext,
String filterName)
servletContext - the ServletContext that the servlet runs infilterName - the name of the filter| Method Detail |
|---|
public String getFilterName()
getFilterName in interface FilterConfigpublic ServletContext getServletContext()
getServletContext in interface FilterConfig
public void addInitParameter(String name,
String value)
public String getInitParameter(String name)
getInitParameter in interface FilterConfigpublic Enumeration<String> getInitParameterNames()
getInitParameterNames in interface FilterConfig
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||