public class ConsumerPactBuilder.PactDslWithProvider.PactDslWithState.PactDslRequestWithoutPath
extends java.lang.Object
| Constructor and Description |
|---|
PactDslRequestWithoutPath(java.lang.String description) |
public PactDslRequestWithoutPath(java.lang.String description)
public ConsumerPactBuilder.PactDslWithProvider.PactDslWithState.PactDslRequestWithoutPath method(java.lang.String method)
method - Valid HTTP methodpublic ConsumerPactBuilder.PactDslWithProvider.PactDslWithState.PactDslRequestWithoutPath headers(java.util.Map<java.lang.String,java.lang.String> headers)
headers - Key-value pairspublic ConsumerPactBuilder.PactDslWithProvider.PactDslWithState.PactDslRequestWithoutPath query(java.lang.String query)
query - query stringpublic ConsumerPactBuilder.PactDslWithProvider.PactDslWithState.PactDslRequestWithoutPath body(java.lang.String body)
body - Request body in string formpublic ConsumerPactBuilder.PactDslWithProvider.PactDslWithState.PactDslRequestWithoutPath body(java.lang.String body, java.lang.String mimeType)
body - Request body in string formpublic ConsumerPactBuilder.PactDslWithProvider.PactDslWithState.PactDslRequestWithoutPath body(java.lang.String body, org.apache.http.entity.ContentType mimeType)
body - Request body in string formpublic ConsumerPactBuilder.PactDslWithProvider.PactDslWithState.PactDslRequestWithoutPath body(org.json.JSONObject body)
body - Request body in JSON formpublic ConsumerPactBuilder.PactDslWithProvider.PactDslWithState.PactDslRequestWithoutPath body(PactDslJsonBody body)
body - Built using the Pact body DSLpublic ConsumerPactBuilder.PactDslWithProvider.PactDslWithState.PactDslRequestWithoutPath body(org.w3c.dom.Document body) throws javax.xml.transform.TransformerException
body - XML Documentjavax.xml.transform.TransformerExceptionpublic ConsumerPactBuilder.PactDslRequestWithPath path(java.lang.String path)
path - string pathpublic ConsumerPactBuilder.PactDslRequestWithPath matchPath(java.lang.String pathRegex)
pathRegex - string path regular expression to match withpublic ConsumerPactBuilder.PactDslRequestWithPath matchPath(java.lang.String pathRegex, java.lang.String path)
path - string path to use when generating requestspathRegex - regular expression to use to match paths