Class ValidationResource
java.lang.Object
ch.tocco.nice2.rest.core.spi.AbstractRestResource
ch.tocco.nice2.rest.entitymodel.impl.resources.ValidationResource
- All Implemented Interfaces:
RestResource
-
Field Summary
Fields inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
uriInfo
-
Constructor Summary
ConstructorDescriptionValidationResource
(PhoneValidator phoneValidator, EmailValidator emailValidator) -
Method Summary
Modifier and TypeMethodDescriptionvoid
setMaxCount
(Long maxCount) ch.tocco.nice2.rest.entitymodel.impl.resources.ValidationResource.ValidationResultBean
validate
(String validatorType, ch.tocco.nice2.rest.entitymodel.impl.resources.ValidationResource.ValidationRequestBean validationRequestBean) Methods inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
getPathParameter, setUriInfo, tryGetInt
-
Constructor Details
-
ValidationResource
-
-
Method Details
-
validate
@POST @Produces("application/json") @Consumes("application/json") @Path("/{validatorType}") public ch.tocco.nice2.rest.entitymodel.impl.resources.ValidationResource.ValidationResultBean validate(@PathParam("validatorType") String validatorType, ch.tocco.nice2.rest.entitymodel.impl.resources.ValidationResource.ValidationRequestBean validationRequestBean) -
setMaxCount
-