Class WmtsKvpRequest
java.lang.Object
org.opengeospatial.cite.wmts10.ets.core.client.WmtsKvpRequest
Encapsulates the parameters of a KVP request (GET).
- Author:
- Lyn Goltz (original), Jim Beatty (modified/fixed May/Jun/Jul-2017 for WMS/WMTS)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a new key value pair.getKvpValue(String keyd) Gets the current value of a the KVP, if existing.voidRemoves the KVP with the passed key, if existing.
-
Constructor Details
-
WmtsKvpRequest
public WmtsKvpRequest()
-
-
Method Details
-
addKvp
Add a new key value pair. If the key already exists the old value will be overwritten. If the key isnullthe KVP will be ignored.- Parameters:
key- nevernullvalue- may benull
-
asQueryString
- Returns:
- the KVPs as query string (e.g. key1=value1&key2=value2)
-
removeKvp
Removes the KVP with the passed key, if existing.- Parameters:
key- of the KVP to remove, may benull(nothing happens)
-
getKvpValue
Gets the current value of a the KVP, if existing.- Parameters:
keyd- of the KVP to remove, may benull(nothing happens)- Returns:
- the value of the KVP at key
-