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
Represents a URL that may contain query parameters.
- Since:
- 1.0.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()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) toString()Methods inherited from class org.springframework.cloud.contract.spec.internal.DslProperty
getClientValue, getServerValue, isSingleValue
-
Constructor Details
-
Url
-
Url
-
-
Method Details
-
getQueryParameters
-
setQueryParameters
-
equals
- Overrides:
equalsin classDslProperty
-
hashCode
public int hashCode()- Overrides:
hashCodein classDslProperty
-
toString
- Overrides:
toStringin classDslProperty
-
queryParameters
The query parameters part of the contract.- Parameters:
consumer- function to manipulate the query parameters
-
queryParameters
The query parameters part of the contract.- Parameters:
consumer- function to manipulate the query parameters
-