Class BasicXmlSchemaValidator
- java.lang.Object
-
- com.adaptris.core.transform.MessageValidatorImpl
-
- com.adaptris.core.transform.schema.XmlSchemaValidatorImpl
-
- com.adaptris.core.transform.schema.BasicXmlSchemaValidator
-
- All Implemented Interfaces:
ComponentLifecycle
,ComponentLifecycleExtension
,MessageValidator
- Direct Known Subclasses:
ExtendedXmlSchemaValidator
@ComponentProfile(summary="Validate an XML document against a schema", recommended=CacheConnection.class, since="3.10.2", tag="xml,schema") public class BasicXmlSchemaValidator extends XmlSchemaValidatorImpl
Used withXmlValidationService
to validate an XML message against a schema.This validates an input XML document against a schema and fails with an exception logging all the exceptions found.
In the adapter configuration file this class is aliased as basic-xml-schema-validator which is the preferred alternative to the fully qualified classname when building your configuration.
-
-
Field Summary
-
Fields inherited from class com.adaptris.core.transform.MessageValidatorImpl
log
-
-
Constructor Summary
Constructors Constructor Description BasicXmlSchemaValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
validate(AdaptrisMessage msg)
protected SchemaViolationHandler
violationHandler()
-
Methods inherited from class com.adaptris.core.transform.schema.XmlSchemaValidatorImpl
close, getSchema, getSchemaCache, init, prepare, resolveFromCache, resolveSchema, setSchema, setSchemaCache, start, stop, withSchema, withSchemaCache
-
-
-
-
Method Detail
-
validate
public void validate(AdaptrisMessage msg) throws CoreException
- Throws:
CoreException
-
violationHandler
protected SchemaViolationHandler violationHandler()
-
-