public class FeatureParameterValidator111 extends MapParameterValidator111
The parameter verifier of the WMS 1.1.1 GetFeatureInfo operation.
capabilities, EXCEPTION_CODE_INVALIDBBOX, MSG_KEY_INVALIDBBOX, resource, validator
Constructor and Description |
---|
FeatureParameterValidator111(WMSCapabilities capabilities)
Construct a FeatureParameterValidator111 object according to WMS meta data information.
|
Modifier and Type | Method and Description |
---|---|
protected OGCParameterException |
createOGCException(ValidateResult checkResult, java.lang.String format)
Verify the result and exception format according to the WMS 1.1.1 GetFeatureInfo request parameter, and 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.
|
void |
validate(java.util.Map<java.lang.String,java.lang.String> paramMap)
Verify the parameter in keyword-value format of the WMS 1.1.1 GetFeatureInfo request.
|
createSRSPattern
createBBOXPattern, createBooleanPattern, createColorPattern, createElevationPattern, createLayerPattern, createPositiveIntegerPattern, createStringArrayPattern, createStylesPattern, createTimePattern, splitString, validateBBOX, validateFormat, validateStyles
public FeatureParameterValidator111(WMSCapabilities capabilities)
Construct a FeatureParameterValidator111 object according to WMS meta data information.
capabilities
- WMS meta 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 MapParameterValidator111
protected java.util.Map<java.lang.String,OptionalParameter> initOptionalPattern()
Create the description information of optional parameters.
It includes the optional parameters like FEATURE_COUNT and INFO_FORMAT besides the contained parameters in MapParameterValidator111.initOptionalPattern()
.
initOptionalPattern
in class MapParameterValidator111
OptionalParameter
).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 QUERY_LAYERS, X, and Y besides the contained parameters in MapParameterValidator111.initRequiredPattern()
.
initRequiredPattern
in class MapParameterValidator111
public void validate(java.util.Map<java.lang.String,java.lang.String> paramMap) throws OGCParameterException
Verify the parameter in keyword-value format of the WMS 1.1.1 GetFeatureInfo request.
validate
in interface Validator
validate
in class WMSParameterValidator
paramMap
- the parameter is a java.util.Map object, the key is the parameter name of the WMS 1.1.1 GetFeatureInfo request, the value is the parameter value.OGCParameterException
- parameter exception of OGC service. It occurs exception if the requested parameter is invalid.protected OGCParameterException createOGCException(ValidateResult checkResult, java.lang.String format)
Verify the result and exception format according to the WMS 1.1.1 GetFeatureInfo request parameter, and create the OGCParameterException exception object.
createOGCException
in class MapParameterValidator111
checkResult
- WMS the verified result of the request parameter.format
- the format of the exception information.