public abstract class AbstractBaseEndpoint extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.jboss.aerogear.unifiedpush.utils.AeroGearLogger |
logger |
| 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 PushSearchService |
getSearch()
offers PushSearchService to subclasses
|
protected void |
validateModelClass(Object model)
Generic validator used to identify constraint violations of the given model class.
|
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 violationsprotected PushSearchService getSearch()
Copyright © 2015 JBoss by Red Hat. All Rights Reserved.