Class WmsKvpRequest

java.lang.Object
de.latlon.ets.wms13.core.client.WmsKvpRequest

public class WmsKvpRequest extends Object
Encapsulates the parameters of a KVP request (GET).
Author:
Lyn Goltz
  • Constructor Details

    • WmsKvpRequest

      public WmsKvpRequest()
  • 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)