public final class PageableFieldValidator
extends java.lang.Object
Constructor and Description |
---|
PageableFieldValidator(java.lang.Class entityClass,
java.lang.String fieldName,
javax.ws.rs.core.UriInfo uri)
Creates the validator.
|
Modifier and Type | Method and Description |
---|---|
int |
getLimit()
Returns a value of Limit paging parameter.
|
int |
getOffset()
Returns a value of Offset paging parameter.
|
boolean |
isFeatureApplicable()
Checks if request is valid.
|
public PageableFieldValidator(java.lang.Class entityClass, java.lang.String fieldName, javax.ws.rs.core.UriInfo uri)
entityClass
- entity class containing a field to validate.fieldName
- field name to validate.uri
- request URI.public boolean isFeatureApplicable() throws JPARSException
JPARSException
- in case of any validation errors.public int getOffset()
public int getLimit()