Package org.mockserver.mock
Class Expectation
- java.lang.Object
-
- org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
-
- org.mockserver.model.ObjectWithJsonToString
-
- org.mockserver.mock.Expectation
-
public class Expectation extends ObjectWithJsonToString
- Author:
- jamesdbloom
-
-
Constructor Summary
Constructors Constructor Description Expectation(HttpRequest httpRequest)
Expectation(HttpRequest httpRequest, Times times, TimeToLive timeToLive)
-
Method Summary
-
Methods inherited from class org.mockserver.model.ObjectWithJsonToString
toString
-
Methods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
equals, fieldsExcludedFromEqualsAndHashCode, hashCode, key
-
-
-
-
Constructor Detail
-
Expectation
public Expectation(HttpRequest httpRequest)
-
Expectation
public Expectation(HttpRequest httpRequest, Times times, TimeToLive timeToLive)
-
-
Method Detail
-
getHttpRequest
public HttpRequest getHttpRequest()
-
getHttpResponse
public HttpResponse getHttpResponse()
-
getHttpResponseTemplate
public HttpTemplate getHttpResponseTemplate()
-
getHttpResponseClassCallback
public HttpClassCallback getHttpResponseClassCallback()
-
getHttpResponseObjectCallback
public HttpObjectCallback getHttpResponseObjectCallback()
-
getHttpForward
public HttpForward getHttpForward()
-
getHttpForwardTemplate
public HttpTemplate getHttpForwardTemplate()
-
getHttpForwardClassCallback
public HttpClassCallback getHttpForwardClassCallback()
-
getHttpForwardObjectCallback
public HttpObjectCallback getHttpForwardObjectCallback()
-
getHttpOverrideForwardedRequest
public HttpOverrideForwardedRequest getHttpOverrideForwardedRequest()
-
getHttpError
public HttpError getHttpError()
-
getAction
public Action getAction()
-
getTimes
public Times getTimes()
-
getTimeToLive
public TimeToLive getTimeToLive()
-
thenRespond
public Expectation thenRespond(HttpResponse httpResponse)
-
thenRespond
public Expectation thenRespond(HttpTemplate httpTemplate)
-
thenRespond
public Expectation thenRespond(HttpClassCallback httpClassCallback)
-
thenRespond
public Expectation thenRespond(HttpObjectCallback httpObjectCallback)
-
thenForward
public Expectation thenForward(HttpForward httpForward)
-
thenForward
public Expectation thenForward(HttpTemplate httpTemplate)
-
thenForward
public Expectation thenForward(HttpClassCallback httpClassCallback)
-
thenForward
public Expectation thenForward(HttpObjectCallback httpObjectCallback)
-
thenForward
public Expectation thenForward(HttpOverrideForwardedRequest httpOverrideForwardedRequest)
-
thenError
public Expectation thenError(HttpError httpError)
-
isActive
public boolean isActive()
-
decrementRemainingMatches
public boolean decrementRemainingMatches()
-
contains
public boolean contains(HttpRequest httpRequest)
-
clone
public Expectation clone()
-
-