Package org.wiremock.webhooks
Class WebhookDefinition
java.lang.Object
org.wiremock.webhooks.WebhookDefinition
-
Constructor Summary
ConstructorsConstructorDescriptionWebhookDefinition(String method, String url, HttpHeaders headers, String body, String base64Body, DelayDistribution delay, Parameters parameters) -
Method Summary
Modifier and TypeMethodDescriptionstatic WebhookDefinitionfrom(Parameters parameters) byte[]getBody()getDelay()longgetUrl()booleanhasBody()withBinaryBody(byte[] body) withDelay(DelayDistribution delay) withExtraParameter(String key, Object value) withFixedDelay(int delayMilliseconds) withHeader(String key, String... values) withHeaders(List<HttpHeader> headers) withMethod(RequestMethod method) withMethod(String method)
-
Constructor Details
-
WebhookDefinition
public WebhookDefinition(String method, String url, HttpHeaders headers, String body, String base64Body, DelayDistribution delay, Parameters parameters) -
WebhookDefinition
public WebhookDefinition()
-
-
Method Details
-
from
-
getMethod
-
getRequestMethod
-
getUrl
-
getHeaders
-
getBase64Body
-
getBody
-
getDelay
-
getDelaySampleMillis
public long getDelaySampleMillis() -
getExtraParameters
-
getBinaryBody
public byte[] getBinaryBody() -
withMethod
-
withMethod
-
withUrl
-
withUrl
-
withHeaders
-
withHeader
-
withBody
-
withBinaryBody
-
withFixedDelay
-
withDelay
-
getOtherFields
-
withExtraParameter
-
hasBody
public boolean hasBody()
-