com.github.kristofa.test.http
Class HttpRequestMatchingContextImpl

java.lang.Object
  extended by com.github.kristofa.test.http.HttpRequestMatchingContextImpl
All Implemented Interfaces:
HttpRequestMatchingContext

public class HttpRequestMatchingContextImpl
extends Object
implements HttpRequestMatchingContext

HttpRequestMatchingContext implementation.

Author:
kristof

Constructor Summary
HttpRequestMatchingContextImpl(HttpRequest originalRequest, HttpRequest otherRequest, HttpResponse response)
          Create a new instance.
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpRequestMatchingContextImpl

public HttpRequestMatchingContextImpl(HttpRequest originalRequest,
                                      HttpRequest otherRequest,
                                      HttpResponse response)
Create a new instance.

Parameters:
originalRequest - Should not be null.
otherRequest - Should not be null.
response - Should not be null.
Method Detail

originalRequest

public HttpRequest originalRequest()
A request that was expected.

Specified by:
originalRequest in interface HttpRequestMatchingContext
Returns:
a request that we expected to receive.

otherRequest

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

Specified by:
otherRequest in interface HttpRequestMatchingContext
Returns:
another request.

response

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

Specified by:
response in interface HttpRequestMatchingContext
Returns:
response.


Copyright © 2014. All Rights Reserved.