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
IOException
org.eel.kitchen.jsonschema.main.JsonValidationFailureException
public Outcome validateMessage(Exchange exc, Message msg) throws Exception
validateMessage
in interface IValidator
Exception
public Outcome validateMessage(Exchange exc, InputStream body, Charset charset) throws Exception
Exception
public long getValid()
getValid
in interface IValidator
public long getInvalid()
getInvalid
in interface IValidator
Copyright © 2012. All Rights Reserved.