public abstract class AbstractQueryParameterValidatorImpl extends Object implements QueryParameterValidator
| Modifier and Type | Field and Description |
|---|---|
protected ErrorBuildingService |
errorBuildingService |
| Constructor and Description |
|---|
AbstractQueryParameterValidatorImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
getQueryParameterName()
Returns the name of the query parameter
|
protected String |
getQueryParameterValue(Map<String,List<String>> queryParameterMap)
Returns the first value of the query parameter via name from
getQueryParameterName() |
protected ValidationResult |
validateMandatoryParameterPresence(Map<String,List<String>> queryParameterMap)
Validates the presence of mandatory query parameter by checking whether:
the parameter is present in the request
the parameter's value is contained only once in the request
the parameter's value is not blank
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvalidateprotected final ErrorBuildingService errorBuildingService
protected ValidationResult validateMandatoryParameterPresence(Map<String,List<String>> queryParameterMap)
queryParameterMap - query parameter map, with parameter names acting as keysprotected abstract String getQueryParameterName()
protected String getQueryParameterValue(Map<String,List<String>> queryParameterMap)
getQueryParameterName()queryParameterMap - query parameters from the requestnull otherwiseCopyright © 2020. All rights reserved.