public class JSONValidator extends Object implements IValidator
| Constructor and Description |
|---|
JSONValidator(ResourceResolver resourceResolver,
String jsonSchema,
ValidatorInterceptor.FailureHandler failureHandler) |
| Modifier and Type | Method and Description |
|---|---|
long |
getInvalid() |
long |
getValid() |
Outcome |
validateMessage(Exchange exc,
InputStream body,
Charset charset) |
Outcome |
validateMessage(Exchange exc,
Message msg) |
public JSONValidator(ResourceResolver resourceResolver, String jsonSchema, ValidatorInterceptor.FailureHandler failureHandler) throws IOException, org.eel.kitchen.jsonschema.main.JsonValidationFailureException
IOExceptionorg.eel.kitchen.jsonschema.main.JsonValidationFailureExceptionpublic Outcome validateMessage(Exchange exc, Message msg) throws Exception
validateMessage in interface IValidatorExceptionpublic Outcome validateMessage(Exchange exc, InputStream body, Charset charset) throws Exception
Exceptionpublic long getValid()
getValid in interface IValidatorpublic long getInvalid()
getInvalid in interface IValidatorCopyright © 2012. All Rights Reserved.