Package org.mapfish.print.map.image.wms
Enum WmsVersion
- java.lang.Object
-
- java.lang.Enum<WmsVersion>
-
- org.mapfish.print.map.image.wms.WmsVersion
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<WmsVersion>
public enum WmsVersion extends java.lang.Enum<WmsVersion>
An enumeration of all the supported WMS versions.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract org.geotools.ows.wms.request.GetMapRequest
getGetMapRequest(java.net.URL baseURL)
Return a getMap request that is configured for the correct version.static WmsVersion
lookup(java.lang.String versionString)
Find the correct version enum object based on the version string.static WmsVersion
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static WmsVersion[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.java.lang.String
versionString()
Get the WMS version string usable in making WMS requests.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static WmsVersion[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (WmsVersion c : WmsVersion.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static WmsVersion valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
lookup
public static WmsVersion lookup(java.lang.String versionString)
Find the correct version enum object based on the version string.- Parameters:
versionString
- the version string.
-
versionString
public java.lang.String versionString()
Get the WMS version string usable in making WMS requests.
-
getGetMapRequest
public abstract org.geotools.ows.wms.request.GetMapRequest getGetMapRequest(java.net.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.
-
-