public abstract class AbstractBaseEndpoint extends Object
| Constructor and Description |
|---|
AbstractBaseEndpoint() |
| Modifier and Type | Method and Description |
|---|---|
protected javax.ws.rs.core.Response.ResponseBuilder |
createBadRequestResponse(Set<javax.validation.ConstraintViolation<?>> violations)
Helper function to create a 400 Bad Request response, containing a JSON map giving details about the violations
|
protected void |
validateModelClass(Object model)
Generic validator used to identify constraint violations of the given model class.
|
protected final Logger logger
protected void validateModelClass(Object model)
model - object to validatejavax.validation.ConstraintViolationException - if constraint violations on the given model have been identified.protected javax.ws.rs.core.Response.ResponseBuilder createBadRequestResponse(Set<javax.validation.ConstraintViolation<?>> violations)
violations - set of occurred constraint violationsCopyright © 2014 JBoss by Red Hat. All Rights Reserved.