public class Input extends Common
Modifier and Type | Class and Description |
---|---|
static class |
Input.BodyType |
Modifier and Type | Method and Description |
---|---|
DslProperty |
$(ClientDslProperty client) |
DslProperty |
$(RegexProperty prop) |
ClientDslProperty |
aBoolean() |
ClientDslProperty |
anyAlphaNumeric() |
ClientDslProperty |
anyAlphaUnicode() |
ClientDslProperty |
anyDate() |
ClientDslProperty |
anyDateTime() |
ClientDslProperty |
anyDouble() |
ClientDslProperty |
anyEmail() |
ClientDslProperty |
anyHex() |
ClientDslProperty |
anyHostname() |
ClientDslProperty |
anyHttpsUrl() |
ClientDslProperty |
anyInteger() |
ClientDslProperty |
anyIpAddress() |
ClientDslProperty |
anyIso8601WithOffset() |
ClientDslProperty |
anyNonBlankString() |
ClientDslProperty |
anyNonEmptyString() |
ClientDslProperty |
anyNumber() |
ClientDslProperty |
anyOf(String... values) |
ClientDslProperty |
anyPositiveInt() |
ClientDslProperty |
anyTime() |
ClientDslProperty |
anyUrl() |
ClientDslProperty |
anyUuid() |
void |
assertThat(String assertThat) |
void |
bodyMatchers(groovy.lang.Closure consumer)
Deprecated.
Deprecated in favor of bodyMatchers to support other future
bodyMatchers too
|
void |
bodyMatchers(Consumer<BodyMatchers> consumer)
Deprecated.
Deprecated in favor of bodyMatchers to support other future
bodyMatchers too
|
boolean |
equals(Object o) |
ExecutionProperty |
getAssertThat() |
BodyMatchers |
getBodyMatchers() |
Input.BodyType |
getMessageBody() |
DslProperty<String> |
getMessageFrom() |
Headers |
getMessageHeaders() |
org.springframework.cloud.contract.spec.internal.Input.ClientPatternValueDslProperty |
getProperty() |
ExecutionProperty |
getTriggeredBy() |
int |
hashCode() |
Input.BodyType |
messageBody(Object bodyAsValue) |
void |
messageFrom(DslProperty messageFrom)
Name of a destination from which message would come to trigger action in the
system.
|
void |
messageFrom(String messageFrom)
Name of a destination from which message would come to trigger action in the
system.
|
void |
messageHeaders(groovy.lang.Closure consumer)
The message headers part of the contract.
|
void |
messageHeaders(Consumer<Headers> consumer)
The message headers part of the contract.
|
RegexProperty |
regexProperty(Object object) |
void |
setAssertThat(ExecutionProperty assertThat) |
void |
setBodyMatchers(BodyMatchers bodyMatchers) |
void |
setMessageBody(Input.BodyType messageBody) |
void |
setMessageFrom(DslProperty<String> messageFrom) |
void |
setMessageHeaders(Headers messageHeaders) |
void |
setProperty(org.springframework.cloud.contract.spec.internal.Input.ClientPatternValueDslProperty property) |
void |
setTriggeredBy(ExecutionProperty triggeredBy) |
void |
stubMatchers(groovy.lang.Closure consumer)
Deprecated.
Deprecated in favor of bodyMatchers to support other future
bodyMatchers too
|
void |
stubMatchers(Consumer<BodyMatchers> consumer)
Deprecated.
Deprecated in favor of bodyMatchers to support other future
bodyMatchers too
|
String |
toString() |
void |
triggeredBy(String triggeredBy)
Function that needs to be executed to trigger action in the system.
|
DslProperty |
value(ClientDslProperty client) |
DslProperty |
value(RegexProperty prop) |
$, $, $, $, aDouble, alphaNumeric, anInteger, anyBoolean, assertThatSidesMatch, c, client, consumer, convertObjectsToDslProperties, convertObjectsToDslProperties, email, execute, file, file, fileAsBytes, hostname, httpsUrl, ipAddress, iso8601WithOffset, isoDate, isoDateTime, isoTime, named, named, named, nonBlank, nonEmpty, number, onlyAlphaUnicode, optional, p, positiveInt, producer, regex, regex, regex, server, stub, test, toDslProperty, toDslProperty, toDslProperty, toDslProperty, url, uuid, value, value, value, value
public Input()
public Input(Input input)
public void messageFrom(String messageFrom)
messageFrom
- message destinationpublic void messageFrom(DslProperty messageFrom)
messageFrom
- message destinationpublic void triggeredBy(String triggeredBy)
triggeredBy
- method name that triggers the messagepublic Input.BodyType messageBody(Object bodyAsValue)
public DslProperty value(ClientDslProperty client)
public DslProperty value(RegexProperty prop)
public DslProperty $(RegexProperty prop)
public DslProperty $(ClientDslProperty client)
public RegexProperty regexProperty(Object object)
regexProperty
in class Common
public void assertThat(String assertThat)
public org.springframework.cloud.contract.spec.internal.Input.ClientPatternValueDslProperty getProperty()
public void setProperty(org.springframework.cloud.contract.spec.internal.Input.ClientPatternValueDslProperty property)
public DslProperty<String> getMessageFrom()
public void setMessageFrom(DslProperty<String> messageFrom)
public ExecutionProperty getTriggeredBy()
public void setTriggeredBy(ExecutionProperty triggeredBy)
public Headers getMessageHeaders()
public void setMessageHeaders(Headers messageHeaders)
public Input.BodyType getMessageBody()
public void setMessageBody(Input.BodyType messageBody)
public ExecutionProperty getAssertThat()
public void setAssertThat(ExecutionProperty assertThat)
public BodyMatchers getBodyMatchers()
public void setBodyMatchers(BodyMatchers bodyMatchers)
public ClientDslProperty anyAlphaUnicode()
public ClientDslProperty anyAlphaNumeric()
public ClientDslProperty anyNumber()
public ClientDslProperty anyInteger()
public ClientDslProperty anyPositiveInt()
public ClientDslProperty anyDouble()
public ClientDslProperty anyHex()
public ClientDslProperty aBoolean()
public ClientDslProperty anyIpAddress()
public ClientDslProperty anyHostname()
public ClientDslProperty anyEmail()
public ClientDslProperty anyUrl()
public ClientDslProperty anyHttpsUrl()
public ClientDslProperty anyUuid()
public ClientDslProperty anyDate()
public ClientDslProperty anyDateTime()
public ClientDslProperty anyTime()
public ClientDslProperty anyIso8601WithOffset()
public ClientDslProperty anyNonBlankString()
public ClientDslProperty anyNonEmptyString()
public ClientDslProperty anyOf(String... values)
public void messageHeaders(Consumer<Headers> consumer)
consumer
- function to manipulate the message headers@Deprecated public void stubMatchers(Consumer<BodyMatchers> consumer)
consumer
- function to manipulate the body headerspublic void bodyMatchers(Consumer<BodyMatchers> consumer)
consumer
- function to manipulate the message headerspublic void messageHeaders(@DelegatesTo(value=Headers.class) groovy.lang.Closure consumer)
consumer
- function to manipulate the message headers@Deprecated public void stubMatchers(@DelegatesTo(value=BodyMatchers.class) groovy.lang.Closure consumer)
consumer
- function to manipulate the body headerspublic void bodyMatchers(@DelegatesTo(value=BodyMatchers.class) groovy.lang.Closure consumer)
consumer
- function to manipulate the message headersCopyright © 2016–2019 Spring. All rights reserved.