class PactDslResponse extends AnyRef
- Alphabetic
- By Inheritance
- PactDslResponse
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new PactDslResponse(consumerPactBuilder: ConsumerPactBuilder, request: PactDslRequestWithPath, defaultRequestValues: PactDslRequestWithoutPath, defaultResponseValues: PactDslResponse)
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): PactDslResponse
Response body to return
Response body to return
- body
Response body as an XML Document
-
def
body(body: DslPart): PactDslResponse
Response body to return
Response body to return
- body
Response body built using the Pact body DSL
-
def
body(body: JSONObject): PactDslResponse
Response body to return
Response body to return
- body
Response body in JSON form
-
def
body(body: Supplier[String], mimeType: ContentType): PactDslResponse
The body of the request
The body of the request
- body
Response body in Java Functional Interface Supplier that must return a string
- mimeType
the Content-Type response header value
-
def
body(body: Supplier[String], mimeType: String): PactDslResponse
The body of the request
The body of the request
- body
Response body in Java Functional Interface Supplier that must return a string
- mimeType
the Content-Type response header value
-
def
body(body: Supplier[String]): PactDslResponse
The body of the request
The body of the request
- body
Response body in Java Functional Interface Supplier that must return a string
-
def
body(body: String, mimeType: ContentType): PactDslResponse
Response body to return
Response body to return
- body
body in string form
- mimeType
the Content-Type response header value
-
def
body(body: String, mimeType: String): PactDslResponse
Response body to return
Response body to return
- body
body in string form
- mimeType
the Content-Type response header value
-
def
body(body: String): PactDslResponse
Response body to return
Response body to return
- body
Response body in string form
-
def
bodyWithSingleQuotes(body: String, mimeType: ContentType): PactDslResponse
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
- mimeType
the Content-Type response header value
-
def
bodyWithSingleQuotes(body: String, mimeType: String): PactDslResponse
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
- mimeType
the Content-Type response header value
-
def
bodyWithSingleQuotes(body: String): PactDslResponse
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( ... )
-
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
given(state: String, params: Map[String, AnyRef]): PactDslWithState
Adds a provider state to this interaction
Adds a provider state to this interaction
- state
Description of the state
- params
Data parameters for this state
-
def
given(state: String): PactDslWithState
Adds a provider state to this interaction
Adds a provider state to this interaction
- state
Description of the state
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
headers(headers: Map[String, String]): PactDslResponse
Response headers to return
Response headers to return
Provide the headers you want to validate, other headers will be ignored.
- headers
key-value pairs of headers
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
matchHeader(header: String, regexp: String, headerExample: String): PactDslResponse
Match a response header.
Match a response header.
- header
Header to match
- regexp
Regular expression to match
- headerExample
Example value to use
-
def
matchHeader(header: String, regexp: String): PactDslResponse
Match a response header.
Match a response header. A random example header value will be generated from the provided regular expression.
- header
Header to match
- regexp
Regular expression to match
-
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
status(status: Int): PactDslResponse
Response status code
Response status code
- status
HTTP status code
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toPact(): RequestResponsePact
Terminates the DSL and builds a pact to represent the interactions
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
uponReceiving(description: String): PactDslRequestWithPath
Description of the request that is expected to be received
Description of the request that is expected to be received
- description
request description
-
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( ... )
Deprecated Value Members
-
def
toFragment(): PactFragment
Terminates the DSL and builds a pact fragment to represent the interactions
Terminates the DSL and builds a pact fragment to represent the interactions
- Deprecated
Use toPact instead