class PactDslRequestWithPath extends AnyRef
- Alphabetic
- By Inheritance
- PactDslRequestWithPath
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
body(body: Document): PactDslRequestWithPath
The body of the request
The body of the request
- body
XML Document
-
def
body(body: DslPart): PactDslRequestWithPath
The body of the request
The body of the request
- body
Built using the Pact body DSL
-
def
body(body: JSONObject): PactDslRequestWithPath
The body of the request
The body of the request
- body
Request body in JSON form
-
def
body(body: Supplier[String], mimeType: ContentType): PactDslRequestWithPath
The body of the request
The body of the request
- body
Request body in Java Functional Interface Supplier that must return a string
-
def
body(body: Supplier[String], mimeType: String): PactDslRequestWithPath
The body of the request
The body of the request
- body
Request body in Java Functional Interface Supplier that must return a string
-
def
body(body: Supplier[String]): PactDslRequestWithPath
The body of the request
The body of the request
- body
Request body in Java Functional Interface Supplier that must return a string
-
def
body(body: String, mimeType: ContentType): PactDslRequestWithPath
The body of the request
The body of the request
- body
Request body in string form
-
def
body(body: String, mimeType: String): PactDslRequestWithPath
The body of the request
The body of the request
- body
Request body in string form
-
def
body(body: String): PactDslRequestWithPath
The body of the request
The body of the request
- body
Request body in string form
-
def
bodyWithSingleQuotes(body: String, mimeType: ContentType): PactDslRequestWithPath
The body of the request with possible single quotes as delimiters and using
QuoteUtilto convert single quotes to double quotes if required.The body of the request with possible single quotes as delimiters and using
QuoteUtilto convert single quotes to double quotes if required.- body
Request body in string form
-
def
bodyWithSingleQuotes(body: String, mimeType: String): PactDslRequestWithPath
The body of the request with possible single quotes as delimiters and using
QuoteUtilto convert single quotes to double quotes if required.The body of the request with possible single quotes as delimiters and using
QuoteUtilto convert single quotes to double quotes if required.- body
Request body in string form
-
def
bodyWithSingleQuotes(body: String): PactDslRequestWithPath
The body of the request with possible single quotes as delimiters and using
QuoteUtilto convert single quotes to double quotes if required.The body of the request with possible single quotes as delimiters and using
QuoteUtilto convert single quotes to double quotes if required.- body
Request body in string form
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
encodedQuery(query: String): PactDslRequestWithPath
The encoded query string for the request
The encoded query string for the request
- query
query string
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
headers(headers: Map[String, String]): PactDslRequestWithPath
Headers to be included in the request
Headers to be included in the request
- headers
Key-value pairs
-
def
headers(firstHeaderName: String, firstHeaderValue: String, headerNameValuePairs: <repeated...>[String]): PactDslRequestWithPath
Headers to be included in the request
Headers to be included in the request
- firstHeaderName
The name of the first header
- firstHeaderValue
The value of the first header
- headerNameValuePairs
Additional headers in name-value pairs.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
matchHeader(header: String, regex: String, headerExample: String): PactDslRequestWithPath
Match a request header.
Match a request header.
- header
Header to match
- regex
Regular expression to match
- headerExample
Example value to use
-
def
matchHeader(header: String, regex: String): PactDslRequestWithPath
Match a request header.
Match a request header. A random example header value will be generated from the provided regular expression.
- header
Header to match
- regex
Regular expression to match
-
def
matchPath(pathRegex: String, path: String): PactDslRequestWithPath
The path of the request
The path of the request
- pathRegex
regular expression to use to match paths
- path
string path to use when generating requests
-
def
matchPath(pathRegex: String): PactDslRequestWithPath
The path of the request.
The path of the request. This will generate a random path to use when generating requests
- pathRegex
string path regular expression to match with
-
def
matchQuery(parameter: String, regex: String, example: List[String]): PactDslRequestWithPath
Match a repeating query parameter with a regex.
Match a repeating query parameter with a regex.
- parameter
Query parameter
- regex
Regular expression to match with each element
- example
Example value list to use for the query parameter (unencoded)
-
def
matchQuery(parameter: String, regex: String, example: String): PactDslRequestWithPath
Match a query parameter with a regex.
Match a query parameter with a regex.
- parameter
Query parameter
- regex
Regular expression to match with
- example
Example value to use for the query parameter (unencoded)
-
def
matchQuery(parameter: String, regex: String): PactDslRequestWithPath
Match a query parameter with a regex.
Match a query parameter with a regex. A random query parameter value will be generated from the regex.
- parameter
Query parameter
- regex
Regular expression to match with
-
def
method(method: String): PactDslRequestWithPath
The HTTP method for the request
The HTTP method for the request
- method
Valid HTTP method
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
path(path: String): PactDslRequestWithPath
The path of the request
The path of the request
- path
string path
-
def
query(query: String): PactDslRequestWithPath
The query string for the request
The query string for the request
- query
query string
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
willRespondWith(): PactDslResponse
Define the response to return
-
def
withFileUpload(partName: String, fileName: String, fileContentType: String, data: Array[Byte]): PactDslRequestWithPath
Sets up a file upload request.
Sets up a file upload request. This will add the correct content type header to the request
- partName
This is the name of the part in the multipart body.
- fileName
This is the name of the file that was uploaded
- fileContentType
This is the content type of the uploaded file
- data
This is the actual file contents