public class AbstractBodyValidatorImpl extends Object
| 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 |
checkOptionalFieldForMaxLength(String field,
String fieldName,
int maxLength,
MessageError messageError) |
protected void |
checkRequiredFieldForMaxLength(String fieldToCheck,
String fieldName,
int maxLength,
MessageError messageError) |
protected <T> Optional<T> |
mapBodyToInstance(javax.servlet.http.HttpServletRequest request,
MessageError messageError,
Class<T> clazz) |
protected ErrorBuildingService errorBuildingService
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
protected AbstractBodyValidatorImpl(ErrorBuildingService errorBuildingService, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
protected void checkRequiredFieldForMaxLength(String fieldToCheck, String fieldName, int maxLength, MessageError messageError)
protected void checkOptionalFieldForMaxLength(String field, String fieldName, int maxLength, MessageError messageError)
protected <T> Optional<T> mapBodyToInstance(javax.servlet.http.HttpServletRequest request, MessageError messageError, Class<T> clazz)
Copyright © 2019. All rights reserved.