|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HttpRequestMatchingFilter
A HttpRequestMatchingFilter contains logic to deal with expected differences between 2 requests and brings them
in-line so that they can potentially match.
HttpRequestMatchingFilter can create copies of both input requests and remove the header entry of both or set
a common value so they can match.
Http Request Matching Filters can be chained. Each filter working on the output of the previous one. This is implemented
in AbstractHttpResponseProvider.
AbstractHttpResponseProvider,
FileHttpResponseProvider,
AllExceptContentTypeHeaderFilter,
AllExceptOriginalHeadersFilter| Method Summary | |
|---|---|
HttpRequestMatchingContext |
filter(HttpRequestMatchingContext context)
Filter/transform input http requests and response if needed. |
HttpRequestMatchingFilter |
next()
Get next instance in chain. |
void |
setNext(HttpRequestMatchingFilter filter)
Http request match filters can be chained. |
| Method Detail |
|---|
HttpRequestMatchingContext filter(HttpRequestMatchingContext context)
context - Input context. Contains either original request, non matching other request and original response OR
context modified by HttpRequestMatchingFilter earlier in the chain.
void setNext(HttpRequestMatchingFilter filter)
Http request match filters can be chained.
filter - Set next instance in chain.HttpRequestMatchingFilter next()
null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||