Class QueryParamNameValidator

java.lang.Object
in.co.akshitbansal.springwebquery.validator.QueryParamNameValidator
All Implemented Interfaces:
Validator<String>

public class QueryParamNameValidator extends Object implements Validator<String>
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 Details

    • QueryParamNameValidator

      public QueryParamNameValidator()
  • Method Details

    • validate

      public void validate(String paramName)
      Validates that the supplied parameter name matches the supported query parameter naming pattern.
      Specified by:
      validate in interface Validator<String>
      Parameters:
      paramName - query parameter name to validate
      Throws:
      QueryConfigurationException - if the parameter name contains unsupported characters or is otherwise invalid