Packages

c

au.com.dius.pact.consumer.dsl

PactDslRequestWithoutPath

class PactDslRequestWithoutPath extends PactDslRequestBase

Linear Supertypes
PactDslRequestBase, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PactDslRequestWithoutPath
  2. PactDslRequestBase
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PactDslRequestWithoutPath(consumerPactBuilder: ConsumerPactBuilder, pactDslWithState: PactDslWithState, description: String, defaultRequestValues: PactDslRequestWithoutPath, defaultResponseValues: PactDslResponse)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def body(body: Document): PactDslRequestWithoutPath

    The body of the request

    The body of the request

    body

    XML Document

  6. def body(body: DslPart): PactDslRequestWithoutPath

    The body of the request

    The body of the request

    body

    Built using the Pact body DSL

  7. def body(body: JSONObject): PactDslRequestWithoutPath

    The body of the request

    The body of the request

    body

    Request body in JSON form

  8. def body(body: Supplier[String], mimeType: ContentType): PactDslRequestWithoutPath

    The body of the request

    The body of the request

    body

    Request body in Java Functional Interface Supplier that must return a string

  9. def body(body: Supplier[String], mimeType: String): PactDslRequestWithoutPath

    The body of the request

    The body of the request

    body

    Request body in Java Functional Interface Supplier that must return a string

  10. def body(body: Supplier[String]): PactDslRequestWithoutPath

    The body of the request

    The body of the request

    body

    Request body in Java Functional Interface Supplier that must return a string

  11. def body(body: String, mimeType: ContentType): PactDslRequestWithoutPath

    The body of the request

    The body of the request

    body

    Request body in string form

  12. def body(body: String, mimeType: String): PactDslRequestWithoutPath

    The body of the request

    The body of the request

    body

    Request body in string form

  13. def body(body: String): PactDslRequestWithoutPath

    The body of the request

    The body of the request

    body

    Request body in string form

  14. def bodyWithSingleQuotes(body: String, mimeType: ContentType): PactDslRequestWithoutPath

    The body of the request with possible single quotes as delimiters and using QuoteUtil to convert single quotes to double quotes if required.

    The body of the request with possible single quotes as delimiters and using QuoteUtil to convert single quotes to double quotes if required.

    body

    Request body in string form

  15. def bodyWithSingleQuotes(body: String, mimeType: String): PactDslRequestWithoutPath

    The body of the request with possible single quotes as delimiters and using QuoteUtil to convert single quotes to double quotes if required.

    The body of the request with possible single quotes as delimiters and using QuoteUtil to convert single quotes to double quotes if required.

    body

    Request body in string form

  16. def bodyWithSingleQuotes(body: String): PactDslRequestWithoutPath

    The body of the request with possible single quotes as delimiters and using QuoteUtil to convert single quotes to double quotes if required.

    The body of the request with possible single quotes as delimiters and using QuoteUtil to convert single quotes to double quotes if required.

    body

    Request body in string form

  17. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  20. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. def headerFromProviderState(name: String, expression: String, example: String): PactDslRequestWithoutPath

    Adds a header that will have it's value injected from the provider state

    Adds a header that will have it's value injected from the provider state

    name

    Header Name

    expression

    Expression to be evaluated from the provider state

    example

    Example value to use in the consumer test

  24. def headers(firstHeaderName: String, firstHeaderValue: String, headerNameValuePairs: <repeated...>[String]): PactDslRequestWithoutPath

    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.

  25. def headers(headers: Map[String, String]): PactDslRequestWithoutPath

    Headers to be included in the request

    Headers to be included in the request

    headers

    Key-value pairs

  26. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  27. 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

  28. 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

  29. def method(method: String): PactDslRequestWithoutPath

    The HTTP method for the request

    The HTTP method for the request

    method

    Valid HTTP method

  30. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  31. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  32. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  33. def path(path: String): PactDslRequestWithPath

    The path of the request

    The path of the request

    path

    string path

  34. def pathFromProviderState(expression: String, example: String): PactDslRequestWithPath

    Sets the path to have it's value injected from the provider state

    Sets the path to have it's value injected from the provider state

    expression

    Expression to be evaluated from the provider state

    example

    Example value to use in the consumer test

  35. def query(query: String): PactDslRequestWithoutPath

    The query string for the request

    The query string for the request

    query

    query string

  36. def queryMatchingDate(field: String, pattern: String): PactDslRequestWithoutPath

    Matches a date field using the provided date pattern.

    Matches a date field using the provided date pattern. The current system date will be used for the example value.

    field

    field name

    pattern

    pattern to match

  37. def queryMatchingDate(field: String, pattern: String, example: String): PactDslRequestWithoutPath

    Matches a date field using the provided date pattern

    Matches a date field using the provided date pattern

    field

    field name

    pattern

    pattern to match

    example

    Example value

  38. def queryMatchingDateBase(field: String, pattern: String, example: String): PactDslRequestBase
    Attributes
    protected[au.com.dius.pact.consumer.dsl]
    Definition Classes
    PactDslRequestBase
  39. def queryMatchingDatetime(field: String, pattern: String): PactDslRequestWithoutPath

    Matches a datetime field using the provided pattern.

    Matches a datetime field using the provided pattern. The current system date and time will be used for the example value.

    field

    field name

    pattern

    pattern to match

  40. def queryMatchingDatetime(field: String, pattern: String, example: String): PactDslRequestWithoutPath

    Matches a datetime field using the provided pattern

    Matches a datetime field using the provided pattern

    field

    field name

    pattern

    pattern to match

    example

    Example value

  41. def queryMatchingDatetimeBase(field: String, pattern: String, example: String): PactDslRequestBase
    Attributes
    protected[au.com.dius.pact.consumer.dsl]
    Definition Classes
    PactDslRequestBase
  42. def queryMatchingISODate(field: String): PactDslRequestWithoutPath

    Matches a date field using the ISO date pattern.

    Matches a date field using the ISO date pattern. The current system date will be used for the example value.

    field

    field name

  43. def queryMatchingISODate(field: String, example: String): PactDslRequestWithoutPath

    Matches a date field using the ISO date pattern

    Matches a date field using the ISO date pattern

    field

    field name

    example

    Example value

  44. def queryMatchingISODatetime(field: String): PactDslRequestWithoutPath

    Matches a datetime field using the ISO pattern.

    Matches a datetime field using the ISO pattern. The current system date and time will be used for the example value.

    field

    field name

  45. def queryMatchingISODatetime(field: String, example: String): PactDslRequestWithoutPath

    Matches a datetime field using the ISO pattern

    Matches a datetime field using the ISO pattern

    field

    field name

    example

    Example value

  46. def queryMatchingISOTime(field: String, example: String): PactDslRequestWithoutPath

    Matches a time field using the ISO time pattern

    Matches a time field using the ISO time pattern

    field

    field name

    example

    Example value

  47. def queryMatchingTime(field: String): PactDslRequestWithoutPath

    Matches a time field using the ISO time pattern.

    Matches a time field using the ISO time pattern. The current system time will be used for the example value.

    field

    field name

  48. def queryMatchingTime(field: String, pattern: String): PactDslRequestWithoutPath

    Matches a time field using the provided time pattern.

    Matches a time field using the provided time pattern. The current system time will be used for the example value.

    field

    field name

    pattern

    pattern to match

  49. def queryMatchingTime(field: String, pattern: String, example: String): PactDslRequestWithoutPath

    Matches a time field using the provided time pattern

    Matches a time field using the provided time pattern

    field

    field name

    pattern

    pattern to match

    example

    Example value

  50. def queryMatchingTimeBase(field: String, pattern: String, example: String): PactDslRequestBase
    Attributes
    protected[au.com.dius.pact.consumer.dsl]
    Definition Classes
    PactDslRequestBase
  51. def queryParameterFromProviderState(name: String, expression: String, example: String): PactDslRequestWithoutPath

    Adds a query parameter that will have it's value injected from the provider state

    Adds a query parameter that will have it's value injected from the provider state

    name

    Name

    expression

    Expression to be evaluated from the provider state

    example

    Example value to use in the consumer test

  52. def setupDefaultValues(): Unit
    Attributes
    protected[au.com.dius.pact.consumer.dsl]
    Definition Classes
    PactDslRequestBase
  53. def setupFileUpload(partName: String, fileName: String, fileContentType: String, data: Array[Byte]): Unit
    Attributes
    protected[au.com.dius.pact.consumer.dsl]
    Definition Classes
    PactDslRequestBase
  54. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  55. def toString(): String
    Definition Classes
    AnyRef → Any
  56. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  57. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  58. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  59. def withFileUpload(partName: String, fileName: String, fileContentType: String, data: Array[Byte]): PactDslRequestWithoutPath

    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

Inherited from PactDslRequestBase

Inherited from AnyRef

Inherited from Any

Ungrouped