public class MapParameterValidator130 extends WMSParameterValidator implements Validator
WMS 1.3.0 GetMap request parameter verifier.
capabilities, EXCEPTION_CODE_INVALIDBBOX, MSG_KEY_INVALIDBBOX, resource, validator
Constructor and Description |
---|
MapParameterValidator130(WMSCapabilities capabilities)
Construct a MapParameterValidator130 object according to WMS meta data information.
|
MapParameterValidator130(WMSCapabilities capabilities, java.lang.String defaultBgColor)
Construct a MapParameterValidator130 object according to WMS meta data information.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.regex.Pattern |
createCRSPattern()
Create the regular expression to verify CRS parameter.
|
protected OGCParameterException |
createOGCException(ValidateResult checkResult, java.lang.String format)
According to the verified result and exception format of the WMS request parameter, create the OGCParameterException exception object.
|
protected java.util.Map<java.lang.String,java.util.regex.Pattern> |
initDefinePattern()
Create a regular expression for verifying the parameters of an operation definition.
|
protected java.util.Map<java.lang.String,OptionalParameter> |
initOptionalPattern()
Create the description information of optional parameters.
|
protected java.util.Map<java.lang.String,java.util.regex.Pattern> |
initRequiredPattern()
Create a regular expression for verifying the necessary parameters.
|
createBBOXPattern, createBooleanPattern, createColorPattern, createElevationPattern, createLayerPattern, createPositiveIntegerPattern, createStringArrayPattern, createStylesPattern, createTimePattern, splitString, validate, validateBBOX, validateFormat, validateStyles
public MapParameterValidator130(WMSCapabilities capabilities)
Construct a MapParameterValidator130 object according to WMS meta data information.
capabilities
- WMS meta information.public MapParameterValidator130(WMSCapabilities capabilities, java.lang.String defaultBgColor)
Construct a MapParameterValidator130 object according to WMS meta data information.
capabilities
- WMS meta information.protected java.util.Map<java.lang.String,java.util.regex.Pattern> initRequiredPattern()
Create a regular expression for verifying the necessary parameters.
It includes the parameters like CRS besides the contained parameters in WMSParameterValidator.initRequiredPattern()
.
initRequiredPattern
in class WMSParameterValidator
protected java.util.Map<java.lang.String,OptionalParameter> initOptionalPattern()
Create the description information of optional parameters.
It includes the optional parameters like EXCEPTIONS besides the contained parameters in WMSParameterValidator.initOptionalPattern()
.
initOptionalPattern
in class WMSParameterValidator
OptionalParameter
).protected java.util.regex.Pattern createCRSPattern()
Create the regular expression to verify CRS parameter.
Currently only support CRS = CRS:84.
Using case insensitive (Pattern.CASE_INSENSITIVE) matching.
protected OGCParameterException createOGCException(ValidateResult checkResult, java.lang.String format)
According to the verified result and exception format of the WMS request parameter, create the OGCParameterException exception object.
createOGCException
in class WMSParameterValidator
checkResult
- WMS the verified result of the request parameter.format
- the format of the exception information.protected java.util.Map<java.lang.String,java.util.regex.Pattern> initDefinePattern()
Create a regular expression for verifying the parameters of an operation definition.
Verify for the operation definition parameters in WMSServlet
, it returns null.
initDefinePattern
in class WMSParameterValidator