Class Url
- java.lang.Object
-
- org.springframework.cloud.contract.spec.internal.DslProperty
-
- org.springframework.cloud.contract.spec.internal.Url
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
UrlPath
public class Url extends DslProperty
Represents a URL that may contain query parameters.- Since:
- 1.0.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Url(Object url)Url(DslProperty prop)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)QueryParametersgetQueryParameters()inthashCode()voidqueryParameters(groovy.lang.Closure consumer)The query parameters part of the contract.voidqueryParameters(Consumer<QueryParameters> consumer)The query parameters part of the contract.voidsetQueryParameters(QueryParameters queryParameters)StringtoString()-
Methods inherited from class org.springframework.cloud.contract.spec.internal.DslProperty
getClientValue, getServerValue, isSingleValue
-
-
-
-
Constructor Detail
-
Url
public Url(DslProperty prop)
-
Url
public Url(Object url)
-
-
Method Detail
-
getQueryParameters
public QueryParameters getQueryParameters()
-
setQueryParameters
public void setQueryParameters(QueryParameters queryParameters)
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classDslProperty
-
hashCode
public int hashCode()
- Overrides:
hashCodein classDslProperty
-
toString
public String toString()
- Overrides:
toStringin classDslProperty
-
queryParameters
public void queryParameters(Consumer<QueryParameters> consumer)
The query parameters part of the contract.- Parameters:
consumer- function to manipulate the query parameters
-
queryParameters
public void queryParameters(@DelegatesTo(QueryParameters.class) groovy.lang.Closure consumer)
The query parameters part of the contract.- Parameters:
consumer- function to manipulate the query parameters
-
-