Class XMLSchemaValidator
java.lang.Object
com.predic8.membrane.core.interceptor.schemavalidation.AbstractMessageValidator
com.predic8.membrane.core.interceptor.schemavalidation.AbstractXMLSchemaValidator
com.predic8.membrane.core.interceptor.schemavalidation.XMLSchemaValidator
- All Implemented Interfaces:
MessageValidator
-
Field Summary
Fields inherited from class com.predic8.membrane.core.interceptor.schemavalidation.AbstractXMLSchemaValidator
failureHandler, invalid, location, resolver, valid, xoprFields inherited from class com.predic8.membrane.core.interceptor.schemavalidation.AbstractMessageValidator
REQUEST, RESPONSE, UNKNOWN -
Constructor Summary
ConstructorsConstructorDescriptionXMLSchemaValidator(ResolverMap resourceResolver, String location, ValidatorInterceptor.FailureHandler failureHandler) -
Method Summary
Modifier and TypeMethodDescriptionprotected ResponsecreateErrorResponse(String message) protected SourcegetMessageBody(InputStream input) Time is dependent on Source type.getName()protected StringgetPreliminaryError(XOPReconstitutor xopr, Message msg) protected List<com.predic8.schema.Schema>protected booleanMethods inherited from class com.predic8.membrane.core.interceptor.schemavalidation.AbstractXMLSchemaValidator
getInvalid, getValid, init, validateMessageMethods inherited from class com.predic8.membrane.core.interceptor.schemavalidation.AbstractMessageValidator
getSourceOfError
-
Constructor Details
-
XMLSchemaValidator
public XMLSchemaValidator(ResolverMap resourceResolver, String location, ValidatorInterceptor.FailureHandler failureHandler) throws Exception - Throws:
Exception
-
-
Method Details
-
getName
-
getSchemas
- Specified by:
getSchemasin classAbstractXMLSchemaValidator
-
createValidators
- Overrides:
createValidatorsin classAbstractXMLSchemaValidator- Throws:
Exception
-
getMessageBody
Time is dependent on Source type. Messured on Mac M1 and 1_000_000 validations StreamSource = 6.2s DOMSource = 38.8s- Specified by:
getMessageBodyin classAbstractXMLSchemaValidator- Parameters:
input- Stream with body- Returns:
- Source
-
createErrorResponse
- Specified by:
createErrorResponsein classAbstractXMLSchemaValidator
-
isFault
- Specified by:
isFaultin classAbstractXMLSchemaValidator
-
getPreliminaryError
- Specified by:
getPreliminaryErrorin classAbstractXMLSchemaValidator
-