Package | Description |
---|---|
org.springframework.cloud.contract.spec.internal | |
org.springframework.cloud.contract.spec.util |
Modifier and Type | Class and Description |
---|---|
class |
Body
Represents a body of a request / response or a message.
|
class |
ClientDslProperty
Represents a client side
DslProperty . |
class |
Cookie
Represents a http cookie.
|
class |
Header
Represents a header of a request / response or a message.
|
static class |
Input.BodyType |
class |
MatchingStrategy
Represents a matching strategy for a JSON.
|
class |
Multipart |
class |
NotToEscapePattern
Special case of Patterns that we don't want to escape.
|
class |
QueryParameter
Represents a single HTTP query parameter.
|
class |
RegexProperty
Represents a regular expression property.
|
class |
ServerDslProperty
Represents a server side
DslProperty . |
class |
Url
Represents a URL that may contain query parameters.
|
class |
UrlPath
Represents a url path.
|
Modifier and Type | Method and Description |
---|---|
DslProperty |
OutputMessage.$(ClientDslProperty client)
Deprecated.
- use the server dsl property
|
DslProperty |
Input.$(ClientDslProperty client) |
DslProperty |
Request.$(ClientDslProperty client)
Allows to set a dynamic value for the given element.
|
DslProperty |
Common.$(ClientDslProperty client,
ServerDslProperty server) |
DslProperty |
Common.$(DslProperty value) |
DslProperty |
Common.$(Object value) |
DslProperty |
OutputMessage.$(OptionalProperty property) |
DslProperty |
OutputMessage.$(Pattern pattern) |
DslProperty |
Response.$(Pattern server)
Allows to set a dynamic value for the given element.
|
DslProperty |
Request.$(Pattern client)
Allows to set a dynamic value for the given Pattern element.
|
DslProperty |
OutputMessage.$(RegexProperty pattern) |
DslProperty |
Input.$(RegexProperty prop) |
DslProperty |
Response.$(RegexProperty server)
Allows to set a dynamic value for the given element.
|
DslProperty |
Request.$(RegexProperty property)
Allows to set a dynamic value for the given regular expression element.
|
DslProperty |
OutputMessage.$(ServerDslProperty property) |
DslProperty |
Response.$(ServerDslProperty server)
Allows to set a dynamic value for the given element.
|
DslProperty |
Common.$(ServerDslProperty server,
ClientDslProperty client) |
static DslProperty |
NamedProperty.asDslProperty(Object o) |
DslProperty |
FromRequest.body()
Request body text (avoid for non-text bodies).
|
DslProperty |
FromRequest.body(String jsonPath)
Request body text for the given JsonPath.
|
DslProperty |
FromRequest.cookie(String key)
Retruns the tempalte for retrieving the first value of a cookie with certain key.
|
DslProperty |
OutputMessage.getBody() |
DslProperty |
NamedProperty.getContentType() |
DslProperty |
Response.getDelay() |
DslProperty<String> |
Input.getMessageFrom() |
DslProperty |
Request.getMethod() |
DslProperty |
NamedProperty.getName() |
DslProperty<String> |
OutputMessage.getSentTo() |
DslProperty |
Response.getStatus() |
DslProperty |
NamedProperty.getValue() |
DslProperty |
FromRequest.header(String key)
First value of a request header e.g.
|
DslProperty |
FromRequest.header(String key,
int index)
nth value of a request header (zero indexed) e.g.
|
DslProperty |
Headers.matching(String value)
If for the consumer / producer you want to match exactly only the root of content
type.
|
DslProperty |
Cookies.matching(String value) |
DslProperty |
FromRequest.path()
URL path.
|
DslProperty |
FromRequest.path(int index)
nth value of a URL path (zero indexed) e.g.
|
DslProperty |
FromRequest.query(String key)
First value of a query parameter e.g.
|
DslProperty |
FromRequest.query(String key,
int index)
nth value of a query parameter (zero indexed) e.g.
|
DslProperty |
FromRequest.rawBody()
Unescaped Request body text (avoid for non-text bodies).
|
DslProperty |
FromRequest.rawBody(String jsonPath)
Unescaped Request body text for the given JsonPath.
|
DslProperty |
FromRequest.rawCookie(String key)
Unescaped Returns the template for retrieving the first value of a cookie with
certain key.
|
DslProperty |
FromRequest.rawHeader(String key)
Unescaped First value of a request header e.g.
|
DslProperty |
FromRequest.rawHeader(String key,
int index)
Unescaped nth value of a request header (zero indexed) e.g.
|
DslProperty |
FromRequest.rawPath()
Unescaped URL path.
|
DslProperty |
FromRequest.rawPath(int index)
Unescaped nth value of a URL path (zero indexed) e.g.
|
DslProperty |
FromRequest.rawQuery(String key)
Unescaped First value of a query parameter e.g.
|
DslProperty |
FromRequest.rawQuery(String key,
int index)
Unescaped nth value of a query parameter (zero indexed) e.g.
|
DslProperty |
FromRequest.rawUrl()
Unescaped URL path and query.
|
DslProperty |
Common.toDslProperty(DslProperty property) |
DslProperty |
Common.toDslProperty(List property) |
DslProperty |
Common.toDslProperty(Map property) |
DslProperty |
Common.toDslProperty(Object property) |
DslProperty |
FromRequest.url() |
DslProperty |
OutputMessage.value(ClientDslProperty clientDslProperty)
Deprecated.
- use the server dsl property
|
DslProperty |
Input.value(ClientDslProperty client) |
DslProperty |
Request.value(ClientDslProperty client)
Allows to set a dynamic value for the given element.
|
DslProperty |
Common.value(ClientDslProperty client,
ServerDslProperty server) |
DslProperty |
Response.value(ClientDslProperty client,
ServerDslProperty server)
Allows to set a dynamic value for the given element.
|
DslProperty |
Request.value(ClientDslProperty client,
ServerDslProperty server)
Allows to set a dynamic value for client and server side.
|
DslProperty |
Common.value(DslProperty value) |
DslProperty |
Common.value(Object value) |
DslProperty |
Response.value(Pattern server)
Allows to set a dynamic value for the given element.
|
DslProperty |
Request.value(Pattern client)
Allows to set a dynamic value for the Pattern element.
|
DslProperty |
OutputMessage.value(RegexProperty pattern) |
DslProperty |
Input.value(RegexProperty prop) |
DslProperty |
Response.value(RegexProperty server)
Allows to set a dynamic value for the given element.
|
DslProperty |
Request.value(RegexProperty property)
Allows to set a dynamic value for the given regular expression element.
|
DslProperty |
OutputMessage.value(ServerDslProperty serverDslProperty) |
DslProperty |
Response.value(ServerDslProperty server)
Allows to set a dynamic value for the given element.
|
DslProperty |
Common.value(ServerDslProperty server,
ClientDslProperty client) |
DslProperty |
Response.value(ServerDslProperty server,
ClientDslProperty client)
Allows to set a dynamic value for the given element.
|
DslProperty |
Request.value(ServerDslProperty server,
ClientDslProperty client)
Allows to set a dynamic value for client and server side.
|
Modifier and Type | Method and Description |
---|---|
Map<String,DslProperty> |
Common.convertObjectsToDslProperties(Map<String,Object> body) |
Modifier and Type | Method and Description |
---|---|
DslProperty |
Common.$(DslProperty value) |
void |
OutputMessage.body(DslProperty bodyAsValue) |
void |
Request.body(DslProperty dslProperty)
Allows set an HTTP body.
|
void |
Input.messageFrom(DslProperty messageFrom)
Name of a destination from which message would come to trigger action in the
system.
|
void |
Request.method(DslProperty method)
Name of the HTTP method.
|
void |
Request.multipart(DslProperty dslProperty)
Allows to set multipart value.
|
NamedProperty |
Common.named(DslProperty name,
DslProperty value) |
NamedProperty |
Common.named(DslProperty name,
DslProperty value) |
NamedProperty |
Common.named(DslProperty name,
DslProperty value,
DslProperty contentType) |
NamedProperty |
Common.named(DslProperty name,
DslProperty value,
DslProperty contentType) |
NamedProperty |
Common.named(DslProperty name,
DslProperty value,
DslProperty contentType) |
void |
OutputMessage.sentTo(DslProperty sentTo) |
void |
OutputMessage.setBody(DslProperty body) |
void |
NamedProperty.setContentType(DslProperty contentType) |
void |
Response.setDelay(DslProperty delay) |
void |
Input.setMessageFrom(DslProperty<String> messageFrom) |
void |
Request.setMethod(DslProperty method) |
void |
NamedProperty.setName(DslProperty name) |
void |
OutputMessage.setSentTo(DslProperty<String> sentTo) |
void |
Response.setStatus(DslProperty status) |
void |
NamedProperty.setValue(DslProperty value) |
void |
Response.status(DslProperty status)
Allows to set the HTTP status.
|
DslProperty |
Common.toDslProperty(DslProperty property) |
void |
Request.url(DslProperty url) |
void |
Request.url(DslProperty url,
groovy.lang.Closure consumer)
URL to which the request will be sent.
|
void |
Request.url(DslProperty url,
Consumer<Url> consumer)
URL to which the request will be sent.
|
void |
Request.urlPath(DslProperty path) |
void |
Request.urlPath(DslProperty path,
groovy.lang.Closure consumer)
URL to which the request will be sent.
|
void |
Request.urlPath(DslProperty path,
Consumer<UrlPath> consumer)
URL to which the request will be sent.
|
DslProperty |
Common.value(DslProperty value) |
Modifier and Type | Method and Description |
---|---|
NamedProperty |
Common.named(Map<String,DslProperty> namedMap) |
Constructor and Description |
---|
Body(DslProperty bodyAsValue) |
Cookie(String key,
DslProperty dslProperty) |
Header(String name,
DslProperty dslProperty) |
MatchingStrategy(DslProperty value,
MatchingStrategy.Type type) |
MatchingStrategy(DslProperty value,
MatchingStrategy.Type type,
JSONCompareMode jsonCompareMode) |
Multipart(DslProperty multipartAsValue) |
NamedProperty(DslProperty name,
DslProperty value) |
NamedProperty(DslProperty name,
DslProperty value) |
NamedProperty(DslProperty name,
DslProperty value,
DslProperty contentType) |
NamedProperty(DslProperty name,
DslProperty value,
DslProperty contentType) |
NamedProperty(DslProperty name,
DslProperty value,
DslProperty contentType) |
QueryParameter(String name,
DslProperty dslProperty) |
Url(DslProperty prop) |
UrlPath(DslProperty path) |
Constructor and Description |
---|
Body(List<DslProperty> bodyAsList) |
Body(Map<String,DslProperty> body) |
Multipart(List<DslProperty> multipartAsList) |
Multipart(Map<String,DslProperty> multipart) |
NamedProperty(Map<String,DslProperty> namedMap) |
Modifier and Type | Method and Description |
---|---|
static void |
ValidateUtils.validateServerValue(DslProperty value,
String msg) |
Copyright © 2016–2019 Spring. All rights reserved.