public abstract class MapParameterParserImpl
extends java.lang.Object
The abstract class to parse the WMS GetMap operation parameter.
Realize the parameter parsing of various version, currently including 1.1.1 and 1.3.0.
Modifier and Type | Field and Description |
---|---|
protected WMSCapabilities |
capabilities
WMS meta information.
|
protected java.lang.String |
mapName
Map name.
|
protected Validator |
validator
WMS request parameters verifier.
|
Constructor and Description |
---|
MapParameterParserImpl(WMSCapabilities capabilities)
Construct a MapParameterParserImpl object according to WMS meta data information.
|
MapParameterParserImpl(WMSCapabilities capabilities, java.lang.String defaultBgColor)
Construct a MapParameterParserImpl object according to WMS meta data information.
|
Modifier and Type | Method and Description |
---|---|
protected abstract Validator |
createValidator(WMSCapabilities capabilities, java.lang.String defaultBgColor)
Create parameter verifier.
|
WMSMapParameter |
parse(java.util.Map<java.lang.String,java.lang.String> paramMap)
Parse the parameter in keyword-value format of the GetMap request.
|
protected Validator validator
protected java.lang.String mapName
protected WMSCapabilities capabilities
public MapParameterParserImpl(WMSCapabilities capabilities)
capabilities
- WMS meta information.public MapParameterParserImpl(WMSCapabilities capabilities, java.lang.String defaultBgColor)
capabilities
- WMS meta information.protected abstract Validator createValidator(WMSCapabilities capabilities, java.lang.String defaultBgColor)
capabilities
- WMS meta information.public WMSMapParameter parse(java.util.Map<java.lang.String,java.lang.String> paramMap) throws OGCParameterException
paramMap
- the parameter is a java.util.Map object, the key is the parameter name of the GetMap request, the value is the parameter value.OGCParameterException
- parameter exception of OGC service.