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 ResolverMap |
resourceResolver |
protected AtomicLong |
valid |
protected XOPReconstitutor |
xopr |
| Constructor and Description |
|---|
AbstractXMLSchemaValidator(ResolverMap resourceResolver,
String location,
ValidatorInterceptor.FailureHandler failureHandler) |
AbstractXMLSchemaValidator(ResolverMap resourceResolver,
String location,
ValidatorInterceptor.FailureHandler failureHandler,
boolean skipFaults) |
| 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 String |
getPreliminaryError(XOPReconstitutor xopr,
Message msg) |
protected abstract List<com.predic8.schema.Schema> |
getSchemas() |
long |
getValid() |
protected abstract boolean |
isFault(Message msg) |
Outcome |
validateMessage(Exchange exc,
Message msg,
String source) |
protected final XOPReconstitutor xopr
protected final String location
protected final ResolverMap resourceResolver
protected final ValidatorInterceptor.FailureHandler failureHandler
protected final AtomicLong valid
protected final AtomicLong invalid
public AbstractXMLSchemaValidator(ResolverMap resourceResolver, String location, ValidatorInterceptor.FailureHandler failureHandler) throws Exception
Exceptionpublic AbstractXMLSchemaValidator(ResolverMap resourceResolver, String location, ValidatorInterceptor.FailureHandler failureHandler, boolean skipFaults) throws Exception
Exceptionpublic Outcome validateMessage(Exchange exc, Message msg, String source) throws Exception
validateMessage in interface IValidatorsource - "request" or "response"Exceptionpublic 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
Exceptionprotected abstract boolean isFault(Message msg)
protected abstract String getPreliminaryError(XOPReconstitutor xopr, Message msg)
Copyright © 2022. All Rights Reserved.