Class QueryParameter
- java.lang.Object
-
- org.springframework.cloud.contract.spec.internal.DslProperty
-
- org.springframework.cloud.contract.spec.internal.QueryParameter
-
- All Implemented Interfaces:
Serializable
public class QueryParameter extends DslProperty
Represents a single HTTP query parameter.- Since:
- 1.0.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description QueryParameter(String name, Object value)QueryParameter(String name, DslProperty dslProperty)QueryParameter(String name, MatchingStrategy matchingStrategy)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static QueryParameterbuild(String key, Object value)booleanequals(Object o)StringgetName()inthashCode()voidsetName(String name)StringtoString()-
Methods inherited from class org.springframework.cloud.contract.spec.internal.DslProperty
getClientValue, getServerValue, isSingleValue
-
-
-
-
Constructor Detail
-
QueryParameter
public QueryParameter(String name, DslProperty dslProperty)
-
QueryParameter
public QueryParameter(String name, MatchingStrategy matchingStrategy)
-
-
Method Detail
-
build
public static QueryParameter build(String key, Object value)
-
getName
public String getName()
-
setName
public void setName(String name)
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classDslProperty
-
hashCode
public int hashCode()
- Overrides:
hashCodein classDslProperty
-
toString
public String toString()
- Overrides:
toStringin classDslProperty
-
-