Enum Class WmsVersion

java.lang.Object
java.lang.Enum<WmsVersion>
org.mapfish.print.map.image.wms.WmsVersion
All Implemented Interfaces:
Serializable, Comparable<WmsVersion>, Constable

public enum WmsVersion extends Enum<WmsVersion>
An enumeration of all the supported WMS versions.
  • Enum Constant Details

    • V1_0_0

      public static final WmsVersion V1_0_0
      Version for WMS 1.0.0.
    • V1_1_0

      public static final WmsVersion V1_1_0
      Version for WMS 1.1.0.
    • V1_1_1

      public static final WmsVersion V1_1_1
      Version for WMS 1.1.1.
    • V1_3_0

      public static final WmsVersion V1_3_0
      Version for WMS 1.3.0.
  • Method Details

    • values

      public static WmsVersion[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static WmsVersion valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • lookup

      public static WmsVersion lookup(String versionString)
      Find the correct version enum object based on the version string.
      Parameters:
      versionString - the version string.
    • versionString

      public String versionString()
      Get the WMS version string usable in making WMS requests.
    • getGetMapRequest

      public abstract org.geotools.ows.wms.request.GetMapRequest getGetMapRequest(URL baseURL)
      Return a getMap request that is configured for the correct version.
      Parameters:
      baseURL - the url to use as the basis for making the request. It has to have the host and full path but query parameters are optional.