Package org.mapfish.print.map.image.wms
Enum Class WmsVersion
- All Implemented Interfaces:
Serializable
,Comparable<WmsVersion>
,Constable
An enumeration of all the supported WMS versions.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionabstract org.geotools.ows.wms.request.GetMapRequest
getGetMapRequest
(URL baseURL) Return a getMap request that is configured for the correct version.static WmsVersion
Find the correct version enum object based on the version string.static WmsVersion
Returns the enum constant of this class with the specified name.static WmsVersion[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Get the WMS version string usable in making WMS requests.
-
Enum Constant Details
-
V1_0_0
Version for WMS 1.0.0. -
V1_1_0
Version for WMS 1.1.0. -
V1_1_1
Version for WMS 1.1.1. -
V1_3_0
Version for WMS 1.3.0.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
lookup
Find the correct version enum object based on the version string.- Parameters:
versionString
- the version string.
-
versionString
Get the WMS version string usable in making WMS requests. -
getGetMapRequest
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.
-