public interface ValidationAdviceTrait extends ConstraintViolationAdviceTrait, MethodArgumentNotValidAdviceTrait
AdviceTraitNOT_ACCEPTABLE| Modifier and Type | Method and Description |
|---|---|
default String |
formatFieldName(String fieldName)
Format the name of a violating field (e.g.
|
default org.springframework.http.ResponseEntity<org.zalando.problem.Problem> |
newConstraintViolationProblem(Collection<Violation> stream,
org.springframework.web.context.request.NativeWebRequest request) |
createViolation, handleConstraintViolationcreateViolation, createViolation, handleMethodArgumentNotValidcreate, create, entity, entity, isCausalChainsEnabled, negotiate, toProblemdefault String formatFieldName(String fieldName)
fieldName - the field name to formatdefault org.springframework.http.ResponseEntity<org.zalando.problem.Problem> newConstraintViolationProblem(Collection<Violation> stream, org.springframework.web.context.request.NativeWebRequest request) throws org.springframework.web.HttpMediaTypeNotAcceptableException
org.springframework.web.HttpMediaTypeNotAcceptableExceptionCopyright © 2015–2016 Zalando SE. All rights reserved.