Class WmtsKvpRequest

java.lang.Object
org.opengeospatial.cite.wmts10.ets.core.client.WmtsKvpRequest

public class WmtsKvpRequest extends Object
Encapsulates the parameters of a KVP request (GET).
Author:
Lyn Goltz (original), Jim Beatty (modified/fixed May/Jun/Jul-2017 for WMS/WMTS)
  • Constructor Details

    • WmtsKvpRequest

      public WmtsKvpRequest()
  • Method Details

    • addKvp

      public void addKvp(String key, String value)
      Add a new key value pair. If the key already exists the old value will be overwritten. If the key is null the KVP will be ignored.
      Parameters:
      key - never null
      value - may be null
    • asQueryString

      public String asQueryString()
      Returns:
      the KVPs as query string (e.g. key1=value1&key2=value2)
    • removeKvp

      public void removeKvp(String key)
      Removes the KVP with the passed key, if existing.
      Parameters:
      key - of the KVP to remove, may be null (nothing happens)
    • getKvpValue

      public String getKvpValue(String keyd)
      Gets the current value of a the KVP, if existing.
      Parameters:
      keyd - of the KVP to remove, may be null (nothing happens)
      Returns:
      the value of the KVP at key