com.github.kristofa.test.http
Interface HttpRequestMatchingContext

All Known Implementing Classes:
HttpRequestMatchingContextImpl

public interface HttpRequestMatchingContext

Context for matching a http request.

If contains a request and another request and a response. Both requests did originally not equal.

Http Request matching contexts can change through out the chain of http request matching filters that are executed.

Author:
kristof
See Also:
HttpRequestMatchingFilter, AbstractHttpResponseProvider

Method Summary
 HttpRequest originalRequest()
          A request that was expected.
 HttpRequest otherRequest()
          Another request that we received and that initially did not match original request.
 HttpResponse response()
          Initial response which can have been modified in the meanwhile.
 

Method Detail

originalRequest

HttpRequest originalRequest()
A request that was expected.

Returns:
a request that we expected to receive.

otherRequest

HttpRequest otherRequest()
Another request that we received and that initially did not match original request.

Returns:
another request.

response

HttpResponse response()
Initial response which can have been modified in the meanwhile.

Returns:
response.


Copyright © 2014. All Rights Reserved.