Class AbstractXMLSchemaValidator
java.lang.Object
com.predic8.membrane.core.interceptor.schemavalidation.AbstractMessageValidator
com.predic8.membrane.core.interceptor.schemavalidation.AbstractXMLSchemaValidator
- All Implemented Interfaces:
MessageValidator
- Direct Known Subclasses:
WSDLValidator,XMLSchemaValidator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ValidatorInterceptor.FailureHandlerprotected final AtomicLongprotected final Stringprotected final ResolverMapprotected final AtomicLongprotected XOPReconstitutorFields inherited from class com.predic8.membrane.core.interceptor.schemavalidation.AbstractMessageValidator
REQUEST, RESPONSE, UNKNOWN -
Constructor Summary
ConstructorsConstructorDescriptionAbstractXMLSchemaValidator(ResolverMap resolver, String location, ValidatorInterceptor.FailureHandler failureHandler) AbstractXMLSchemaValidator(ResolverMap resolver, String location, ValidatorInterceptor.FailureHandler failureHandler, boolean skipFaults) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ResponsecreateErrorResponse(String message) longprotected abstract SourcegetMessageBody(InputStream input) protected abstract StringgetPreliminaryError(XOPReconstitutor xopr, Message msg) protected abstract List<com.predic8.schema.Schema>longgetValid()voidinit()protected abstract booleanvalidateMessage(Exchange exc, Message msg) Methods inherited from class com.predic8.membrane.core.interceptor.schemavalidation.AbstractMessageValidator
getSourceOfErrorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.predic8.membrane.core.interceptor.schemavalidation.MessageValidator
getName
-
Field Details
-
xopr
-
location
-
resolver
-
failureHandler
-
valid
-
invalid
-
-
Constructor Details
-
AbstractXMLSchemaValidator
public AbstractXMLSchemaValidator(ResolverMap resolver, String location, ValidatorInterceptor.FailureHandler failureHandler) -
AbstractXMLSchemaValidator
public AbstractXMLSchemaValidator(ResolverMap resolver, String location, ValidatorInterceptor.FailureHandler failureHandler, boolean skipFaults)
-
-
Method Details
-
init
- Specified by:
initin interfaceMessageValidator- Overrides:
initin classAbstractMessageValidator- Throws:
Exception
-
validateMessage
- Throws:
Exception
-
createValidators
- Throws:
Exception
-
getValid
public long getValid() -
getInvalid
public long getInvalid() -
getSchemas
-
getMessageBody
- Throws:
Exception
-
createErrorResponse
-
isFault
-
getPreliminaryError
-