org.mockserver.mock
Class Expectation

java.lang.Object
  extended by org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
      extended by org.mockserver.model.ObjectWithJsonToString
          extended by org.mockserver.mock.Expectation

public class Expectation
extends ObjectWithJsonToString

Author:
jamesdbloom

Field Summary
 
Fields inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
logger
 
Constructor Summary
Expectation(HttpRequest httpRequest, Times times, TimeToLive timeToLive)
           
 
Method Summary
 boolean contains(HttpRequest httpRequest)
           
 void decrementRemainingMatches()
           
 Action getAction(boolean applyDelay)
           
 HttpCallback getHttpCallback()
           
 HttpForward getHttpForward()
           
 HttpRequest getHttpRequest()
           
 HttpResponse getHttpResponse()
           
 HttpResponse getHttpResponse(boolean applyDelay)
           
 Times getTimes()
           
 TimeToLive getTimeToLive()
           
 boolean hasRemainingMatches()
           
 boolean isStillAlive()
           
 boolean matches(HttpRequest httpRequest)
           
 void setNotUnlimitedResponses()
           
 Expectation thenCallback(HttpCallback httpCallback)
           
 Expectation thenForward(HttpForward httpForward)
           
 Expectation thenRespond(HttpResponse httpResponse)
           
 
Methods inherited from class org.mockserver.model.ObjectWithJsonToString
toString
 
Methods inherited from class org.mockserver.model.ObjectWithReflectiveEqualsHashCodeToString
addFieldsExcludedFromEqualsAndHashCode, equals, fieldsExcludedFromEqualsAndHashCode, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Expectation

public Expectation(HttpRequest httpRequest,
                   Times times,
                   TimeToLive timeToLive)
Method Detail

getHttpRequest

public HttpRequest getHttpRequest()

getHttpResponse

public HttpResponse getHttpResponse(boolean applyDelay)

getHttpResponse

public HttpResponse getHttpResponse()

getHttpForward

public HttpForward getHttpForward()

getHttpCallback

public HttpCallback getHttpCallback()

getAction

public Action getAction(boolean applyDelay)

getTimes

public Times getTimes()

getTimeToLive

public TimeToLive getTimeToLive()

thenRespond

public Expectation thenRespond(HttpResponse httpResponse)

thenForward

public Expectation thenForward(HttpForward httpForward)

thenCallback

public Expectation thenCallback(HttpCallback httpCallback)

matches

public boolean matches(HttpRequest httpRequest)

hasRemainingMatches

public boolean hasRemainingMatches()

isStillAlive

public boolean isStillAlive()

decrementRemainingMatches

public void decrementRemainingMatches()

setNotUnlimitedResponses

public void setNotUnlimitedResponses()

contains

public boolean contains(HttpRequest httpRequest)


Copyright © 2015. All rights reserved.