public class ConstraintMessage extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T extends javax.validation.ConstraintViolation<?>> |
determineStatus(Set<T> violations,
org.glassfish.jersey.server.model.Invocable invocable)
Given a set of constraint violations and a Jersey
Invocable where the constraint
occurred, determine the HTTP Status code for the response. |
static String |
getMessage(javax.validation.ConstraintViolation<?> v,
org.glassfish.jersey.server.model.Invocable invocable)
Gets the human friendly location of where the violation was raised.
|
static Optional<String> |
isRequestEntity(javax.validation.ConstraintViolation<?> violation,
org.glassfish.jersey.server.model.Invocable invocable)
Determines if constraint violation occurred in the request entity.
|
public static String getMessage(javax.validation.ConstraintViolation<?> v, org.glassfish.jersey.server.model.Invocable invocable)
public static Optional<String> isRequestEntity(javax.validation.ConstraintViolation<?> violation, org.glassfish.jersey.server.model.Invocable invocable)
public static <T extends javax.validation.ConstraintViolation<?>> int determineStatus(Set<T> violations, org.glassfish.jersey.server.model.Invocable invocable)
Invocable where the constraint
occurred, determine the HTTP Status code for the response. A return value violation is an
internal server error, an invalid request body is unprocessable entity, and any params that
are invalid means a bad requestCopyright © 2021. All rights reserved.