public abstract class AbstractXMLSchemaValidator extends Object implements IValidator
Modifier and Type | Field and Description |
---|---|
protected ValidatorInterceptor.FailureHandler |
failureHandler |
protected AtomicLong |
invalid |
protected String |
location |
protected ResourceResolver |
resourceResolver |
protected AtomicLong |
valid |
Constructor and Description |
---|
AbstractXMLSchemaValidator(ResourceResolver resourceResolver,
String location,
ValidatorInterceptor.FailureHandler failureHandler) |
Modifier and Type | Method and Description |
---|---|
protected abstract Response |
createErrorResponse(String message) |
protected List<Validator> |
createValidators() |
long |
getInvalid() |
protected abstract Source |
getMessageBody(InputStream input) |
protected abstract List<com.predic8.schema.Schema> |
getSchemas() |
long |
getValid() |
Outcome |
validateMessage(Exchange exc,
Message msg) |
protected final String location
protected final ResourceResolver resourceResolver
protected final ValidatorInterceptor.FailureHandler failureHandler
protected final AtomicLong valid
protected final AtomicLong invalid
public AbstractXMLSchemaValidator(ResourceResolver resourceResolver, String location, ValidatorInterceptor.FailureHandler failureHandler) throws Exception
Exception
public Outcome validateMessage(Exchange exc, Message msg) throws Exception
validateMessage
in interface IValidator
Exception
public long getValid()
getValid
in interface IValidator
public long getInvalid()
getInvalid
in interface IValidator
protected abstract List<com.predic8.schema.Schema> getSchemas()
protected abstract Source getMessageBody(InputStream input) throws Exception
Exception
Copyright © 2012. All Rights Reserved.