Class QueryParamNameValidator
java.lang.Object
in.co.akshitbansal.springwebquery.validator.QueryParamNameValidator
Validates HTTP query parameter names used by web-query configuration.
The accepted format is restricted to a conservative identifier-style subset so configured names remain unambiguous in URLs and compatible with Spring request parameter lookup.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
QueryParamNameValidator
public QueryParamNameValidator()
-
-
Method Details
-
validate
Validates that the supplied parameter name matches the supported query parameter naming pattern.- Specified by:
validatein interfaceValidator<String>- Parameters:
paramName- query parameter name to validate- Throws:
QueryConfigurationException- if the parameter name contains unsupported characters or is otherwise invalid
-