Class JSONValidator
java.lang.Object
com.predic8.membrane.core.interceptor.schemavalidation.AbstractMessageValidator
com.predic8.membrane.core.interceptor.schemavalidation.JSONValidator
- All Implemented Interfaces:
MessageValidator
-
Field Summary
Fields inherited from class com.predic8.membrane.core.interceptor.schemavalidation.AbstractMessageValidator
REQUEST, RESPONSE, UNKNOWN -
Constructor Summary
ConstructorsConstructorDescriptionJSONValidator(ResolverMap resourceResolver, String jsonSchema, ValidatorInterceptor.FailureHandler failureHandler) -
Method Summary
Modifier and TypeMethodDescriptionlonggetName()longgetValid()voidinit()validateMessage(Exchange exc, Message msg) validateMessage(Exchange exc, Message msg, Charset charset) Methods inherited from class com.predic8.membrane.core.interceptor.schemavalidation.AbstractMessageValidator
getSourceOfError
-
Constructor Details
-
JSONValidator
public JSONValidator(ResolverMap resourceResolver, String jsonSchema, ValidatorInterceptor.FailureHandler failureHandler) throws IOException - Throws:
IOException
-
-
Method Details
-
getName
-
init
- Specified by:
initin interfaceMessageValidator- Overrides:
initin classAbstractMessageValidator- Throws:
IOException
-
validateMessage
- Throws:
Exception
-
validateMessage
- Throws:
Exception
-
getValid
public long getValid() -
getInvalid
public long getInvalid()
-