public class JSONValidator extends Object implements IValidator
| Constructor and Description |
|---|
JSONValidator(ResolverMap resourceResolver,
String jsonSchema,
ValidatorInterceptor.FailureHandler failureHandler) |
| Modifier and Type | Method and Description |
|---|---|
long |
getInvalid() |
long |
getValid() |
Outcome |
validateMessage(Exchange exc,
InputStream body,
Charset charset,
String source) |
Outcome |
validateMessage(Exchange exc,
Message msg,
String source) |
public JSONValidator(ResolverMap resourceResolver, String jsonSchema, ValidatorInterceptor.FailureHandler failureHandler) throws IOException
IOExceptionpublic Outcome validateMessage(Exchange exc, Message msg, String source) throws Exception
validateMessage in interface IValidatorsource - "request" or "response"Exceptionpublic Outcome validateMessage(Exchange exc, InputStream body, Charset charset, String source) throws Exception
Exceptionpublic long getValid()
getValid in interface IValidatorpublic long getInvalid()
getInvalid in interface IValidatorCopyright © 2022. All Rights Reserved.