Class QueryParameter
- java.lang.Object
-
- com.github.tomakehurst.wiremock.http.MultiValue
-
- com.github.tomakehurst.wiremock.http.QueryParameter
-
public class QueryParameter extends MultiValue
-
-
Field Summary
-
Fields inherited from class com.github.tomakehurst.wiremock.http.MultiValue
key, values
-
-
Constructor Summary
Constructors Constructor Description QueryParameter(java.lang.String key, java.util.List<java.lang.String> values)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static QueryParameterabsent(java.lang.String key)booleanisPresent()booleanisSingleValued()java.lang.Stringkey()static QueryParameterqueryParam(java.lang.String key, java.lang.String... values)java.util.List<java.lang.String>values()-
Methods inherited from class com.github.tomakehurst.wiremock.http.MultiValue
containsValue, firstValue, getKey, getValues, hasValueMatching, toString
-
-
-
-
Method Detail
-
queryParam
public static QueryParameter queryParam(java.lang.String key, java.lang.String... values)
-
absent
public static QueryParameter absent(java.lang.String key)
-
isPresent
public boolean isPresent()
- Overrides:
isPresentin classMultiValue
-
key
public java.lang.String key()
- Overrides:
keyin classMultiValue
-
values
public java.util.List<java.lang.String> values()
- Overrides:
valuesin classMultiValue
-
isSingleValued
public boolean isSingleValued()
- Overrides:
isSingleValuedin classMultiValue
-
-