Class MockResponseConfig

java.lang.Object
com.flowable.serviceregistry.engine.impl.invoker.rest.mock.MockResponseConfig

public class MockResponseConfig extends Object
POJO representing a single mock response entry within a service operation's config. Deserialized from the mockResponses array in the operation config JSON.
  • Field Details

    • RESPONSE_TYPE_TIMEOUT

      public static final String RESPONSE_TYPE_TIMEOUT
      See Also:
    • RESPONSE_TYPE_CONNECTION_ERROR

      public static final String RESPONSE_TYPE_CONNECTION_ERROR
      See Also:
    • key

      protected String key
    • name

      protected String name
    • responseType

      protected String responseType
    • statusCode

      protected int statusCode
    • headers

      protected List<Map<String,String>> headers
    • body

      protected String body
    • matchCondition

      protected String matchCondition
    • samplingRate

      protected int samplingRate
    • priority

      protected int priority
  • Constructor Details

    • MockResponseConfig

      public MockResponseConfig()
  • Method Details

    • getKey

      public String getKey()
    • setKey

      public void setKey(String key)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getResponseType

      public String getResponseType()
    • setResponseType

      public void setResponseType(String responseType)
    • getStatusCode

      public int getStatusCode()
    • setStatusCode

      public void setStatusCode(int statusCode)
    • getHeaders

      public List<Map<String,String>> getHeaders()
    • setHeaders

      public void setHeaders(List<Map<String,String>> headers)
    • getBody

      public String getBody()
    • setBody

      public void setBody(String body)
    • getMatchCondition

      public String getMatchCondition()
    • setMatchCondition

      public void setMatchCondition(String matchCondition)
    • getSamplingRate

      public int getSamplingRate()
    • setSamplingRate

      public void setSamplingRate(int samplingRate)
    • getPriority

      public int getPriority()
    • setPriority

      public void setPriority(int priority)