public class AbstractBodyValidatorImpl extends Object implements BodyValidator
| Modifier and Type | Field and Description |
|---|---|
protected ErrorBuildingService |
errorBuildingService |
protected com.fasterxml.jackson.databind.ObjectMapper |
objectMapper |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractBodyValidatorImpl(ErrorBuildingService errorBuildingService,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkFieldForMaxLength(String fieldToCheck,
String fieldName,
ValidationObject validationObject,
MessageError messageError) |
protected String |
extractErrorField(String message) |
protected <T> Optional<T> |
mapBodyToInstance(javax.servlet.http.HttpServletRequest request,
MessageError messageError,
Class<T> clazz) |
void |
validate(javax.servlet.http.HttpServletRequest request,
MessageError messageError) |
protected void |
validateBodyFields(javax.servlet.http.HttpServletRequest request,
MessageError messageError) |
protected void |
validateRawData(javax.servlet.http.HttpServletRequest request,
MessageError messageError) |
protected ErrorBuildingService errorBuildingService
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
protected AbstractBodyValidatorImpl(ErrorBuildingService errorBuildingService, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
protected void validateBodyFields(javax.servlet.http.HttpServletRequest request,
MessageError messageError)
protected void validateRawData(javax.servlet.http.HttpServletRequest request,
MessageError messageError)
public void validate(javax.servlet.http.HttpServletRequest request,
MessageError messageError)
validate in interface BodyValidatorprotected void checkFieldForMaxLength(String fieldToCheck, String fieldName, ValidationObject validationObject, MessageError messageError)
protected <T> Optional<T> mapBodyToInstance(javax.servlet.http.HttpServletRequest request, MessageError messageError, Class<T> clazz)
Copyright © 2019. All rights reserved.