|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.mock.web.MockFilterChain
public class MockFilterChain
Mock implementation of the FilterConfig
interface.
Used for testing the web framework; also useful for testing
custom Filter
implementations.
MockFilterConfig
,
PassThroughFilterChain
Constructor Summary | |
---|---|
MockFilterChain()
|
Method Summary | |
---|---|
void |
doFilter(ServletRequest request,
ServletResponse response)
Records the request and response. |
ServletRequest |
getRequest()
Return the request that doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse) has been called with. |
ServletResponse |
getResponse()
Return the response that doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse) has been called with. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MockFilterChain()
Method Detail |
---|
public void doFilter(ServletRequest request, ServletResponse response)
doFilter
in interface FilterChain
public ServletRequest getRequest()
doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
has been called with.
public ServletResponse getResponse()
doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
has been called with.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |