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
Exceptionpublic Outcome validateMessage(Exchange exc, Message msg) throws Exception
validateMessage in interface IValidatorExceptionpublic long getValid()
getValid in interface IValidatorpublic long getInvalid()
getInvalid in interface IValidatorprotected abstract List<com.predic8.schema.Schema> getSchemas()
protected abstract Source getMessageBody(InputStream input) throws Exception
ExceptionCopyright © 2012. All Rights Reserved.