Uses of Class
org.springframework.cloud.contract.spec.internal.DslProperty
Packages that use DslProperty
Package
Description
-
Uses of DslProperty in org.springframework.cloud.contract.spec.internal
Subclasses of DslProperty in org.springframework.cloud.contract.spec.internalModifier and TypeClassDescriptionclassRepresents a body of a request / response or a message.classRepresents a client sideDslProperty.classRepresents a http cookie.classRepresents a header of a request / response or a message.classRepresents a matching strategy for a JSON.classclassSpecial case of Patterns that we don't want to escape.classRepresents a single HTTP query parameter.classRepresents a regular expression property.classRepresents a server sideDslProperty.classRepresents a URL that may contain query parameters.classRepresents a url path.Methods in org.springframework.cloud.contract.spec.internal that return DslPropertyModifier and TypeMethodDescriptionCommon.$(ClientDslProperty client, ServerDslProperty server) Common.$(DslProperty value) Common.$(ServerDslProperty server, ClientDslProperty client) Input.$(ClientDslProperty client) Input.$(RegexProperty prop) OutputMessage.$(OptionalProperty property) OutputMessage.$(RegexProperty pattern) OutputMessage.$(ServerDslProperty property) Allows to set a dynamic value for the given Pattern element.Request.$(ClientDslProperty client) Allows to set a dynamic value for the given element.Request.$(RegexProperty property) Allows to set a dynamic value for the given regular expression element.Allows to set a dynamic value for the given element.Response.$(RegexProperty server) Allows to set a dynamic value for the given element.Response.$(ServerDslProperty server) Allows to set a dynamic value for the given element.static DslPropertyNamedProperty.asDslProperty(Object o) FromRequest.body()Request body text (avoid for non-text bodies).Request body text for the given JsonPath.Retruns the tempalte for retrieving the first value of a cookie with certain key.OutputMessage.getBody()NamedProperty.getContentType()Response.getDelay()Request.getMethod()NamedProperty.getName()OutputMessage.getSentTo()Response.getStatus()NamedProperty.getValue()First value of a request header e.g.nth value of a request header (zero indexed) e.g.If for the consumer / producer you want to match exactly only the root of content type.FromRequest.path()URL path.FromRequest.path(int index) nth value of a URL path (zero indexed) e.g.First value of a query parameter e.g.nth value of a query parameter (zero indexed) e.g.FromRequest.rawBody()Unescaped Request body text (avoid for non-text bodies).Unescaped Request body text for the given JsonPath.Unescaped Returns the template for retrieving the first value of a cookie with certain key.Unescaped First value of a request header e.g.Unescaped nth value of a request header (zero indexed) e.g.FromRequest.rawPath()Unescaped URL path.FromRequest.rawPath(int index) Unescaped nth value of a URL path (zero indexed) e.g.Unescaped First value of a query parameter e.g.Unescaped nth value of a query parameter (zero indexed) e.g.FromRequest.rawUrl()Unescaped URL path and query.Common.toDslProperty(Object property) Common.toDslProperty(List property) Common.toDslProperty(Map property) Common.toDslProperty(DslProperty property) FromRequest.url()Common.value(ClientDslProperty client, ServerDslProperty server) Common.value(DslProperty value) Common.value(ServerDslProperty server, ClientDslProperty client) Input.value(ClientDslProperty client) Input.value(RegexProperty prop) OutputMessage.value(RegexProperty pattern) OutputMessage.value(ServerDslProperty serverDslProperty) Allows to set a dynamic value for the Pattern element.Request.value(ClientDslProperty client) Allows to set a dynamic value for the given element.Request.value(ClientDslProperty client, ServerDslProperty server) Allows to set a dynamic value for client and server side.Request.value(RegexProperty property) Allows to set a dynamic value for the given regular expression element.Request.value(ServerDslProperty server, ClientDslProperty client) Allows to set a dynamic value for client and server side.Allows to set a dynamic value for the given element.Response.value(ClientDslProperty client, ServerDslProperty server) Allows to set a dynamic value for the given element.Response.value(RegexProperty server) Allows to set a dynamic value for the given element.Response.value(ServerDslProperty server) Allows to set a dynamic value for the given element.Response.value(ServerDslProperty server, ClientDslProperty client) Allows to set a dynamic value for the given element.Methods in org.springframework.cloud.contract.spec.internal that return types with arguments of type DslPropertyMethods in org.springframework.cloud.contract.spec.internal with parameters of type DslPropertyModifier and TypeMethodDescriptionCommon.$(DslProperty value) voidOutputMessage.body(DslProperty bodyAsValue) voidRequest.body(DslProperty dslProperty) Allows set an HTTP body.voidRequest.method(DslProperty method) Name of the HTTP method.voidRequest.multipart(DslProperty dslProperty) Allows to set multipart value.Common.named(DslProperty name, DslProperty value) Common.named(DslProperty name, DslProperty value, DslProperty contentType) voidOutputMessage.sentTo(DslProperty sentTo) voidOutputMessage.setBody(DslProperty body) voidNamedProperty.setContentType(DslProperty contentType) voidResponse.setDelay(DslProperty delay) voidRequest.setMethod(DslProperty method) voidNamedProperty.setName(DslProperty name) voidOutputMessage.setSentTo(DslProperty<String> sentTo) voidResponse.setStatus(DslProperty status) voidNamedProperty.setValue(DslProperty value) voidResponse.status(DslProperty status) Allows to set the HTTP status.Common.toDslProperty(DslProperty property) voidRequest.url(DslProperty url) voidRequest.url(DslProperty url, groovy.lang.Closure consumer) URL to which the request will be sent.voidRequest.url(DslProperty url, Consumer<Url> consumer) URL to which the request will be sent.voidRequest.urlPath(DslProperty path) voidRequest.urlPath(DslProperty path, groovy.lang.Closure consumer) URL to which the request will be sent.voidRequest.urlPath(DslProperty path, Consumer<UrlPath> consumer) URL to which the request will be sent.Common.value(DslProperty value) Method parameters in org.springframework.cloud.contract.spec.internal with type arguments of type DslPropertyConstructors in org.springframework.cloud.contract.spec.internal with parameters of type DslPropertyModifierConstructorDescriptionBody(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, DslProperty contentType) QueryParameter(String name, DslProperty dslProperty) Url(DslProperty prop) UrlPath(DslProperty path) Constructor parameters in org.springframework.cloud.contract.spec.internal with type arguments of type DslPropertyModifierConstructorDescriptionBody(List<DslProperty> bodyAsList) Body(Map<String, DslProperty> body) Multipart(List<DslProperty> multipartAsList) Multipart(Map<String, DslProperty> multipart) NamedProperty(Map<String, DslProperty> namedMap) -
Uses of DslProperty in org.springframework.cloud.contract.spec.util
Methods in org.springframework.cloud.contract.spec.util with parameters of type DslPropertyModifier and TypeMethodDescriptionstatic voidValidateUtils.validateServerValue(DslProperty value, String msg)