public class FeatureParameterValidator130 extends MapParameterValidator130
The parameter verifier of the WMS 1.3.0 GetFeatureInfo operation.
capabilities, EXCEPTION_CODE_INVALIDBBOX, MSG_KEY_INVALIDBBOX, resource, validator| Constructor and Description |
|---|
FeatureParameterValidator130(WMSCapabilities capabilities)
Construct a FeatureParameterValidator130 object according to WMS meta data information.
|
| Modifier and Type | Method and Description |
|---|---|
protected OGCParameterException |
createOGCException(ValidateResult validateResult, java.lang.String format)
Verify the result and exception format according to the WMS 1.3.0 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.3.0 GetFeatureInfo request.
|
createCRSPatterncreateBBOXPattern, createBooleanPattern, createColorPattern, createElevationPattern, createLayerPattern, createPositiveIntegerPattern, createStringArrayPattern, createStylesPattern, createTimePattern, splitString, validateBBOX, validateFormat, validateStylespublic FeatureParameterValidator130(WMSCapabilities capabilities)
Construct a FeatureParameterValidator130 object according to WMS meta data information.
capabilities - WMS meta information.
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.3.0 GetFeatureInfo request.
validate in interface Validatorvalidate in class WMSParameterValidatorparamMap - the parameter is a java.util.Map object, the key is the parameter name of the WMS 1.3.0 GetFeatureInfo request, the value is the parameter value.OGCParameterException - parameter exception of OGC service. It occurs exception if the requested parameter is invalid.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 MapParameterValidator130protected java.util.Map<java.lang.String,OptionalParameter> initOptionalPattern()
Create the description information of optional parameters.
It includes the optional parameters like FEATURE_COUNT besides the contained parameters in MapParameterValidator130.initOptionalPattern().
initOptionalPattern in class MapParameterValidator130OptionalParameter).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, NFO_FORMAT, I, and J besides the contained parameters in MapParameterValidator130.initRequiredPattern().
initRequiredPattern in class MapParameterValidator130protected OGCParameterException createOGCException(ValidateResult validateResult, java.lang.String format)
Verify the result and exception format according to the WMS 1.3.0 GetFeatureInfo request parameter, and create the OGCParameterException exception object.
createOGCException in class MapParameterValidator130validateResult - the verified result of the WMS request parameter.format - the format of the exception information.