public class SchemaValidatorOperation extends PooledTransformerOperation<org.mule.module.xml.internal.operation.SchemaValidatorOperation.SchemaKey,Validator>
documentBuilderFactory, entityResolver, expandEntities| Constructor and Description |
|---|
SchemaValidatorOperation() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.commons.pool2.BasePooledObjectFactory<Validator> |
createPooledObjectFactory(org.mule.module.xml.internal.operation.SchemaValidatorOperation.SchemaKey key) |
void |
validateSchema(String schemas,
SchemaLanguage schemaLanguage,
InputStream content,
XmlModule config)
Validates that the input content is compliant with a given schema.
|
doInitialise, initialise, start, stop, testOnReturn, withTransformer@Validator @Execution(value=CPU_INTENSIVE) @Throws(value=SchemaValidatorErrorTypeProvider.class) public void validateSchema(@Path(type=FILE,acceptedFileExtensions="xsd") String schemas, @Optional(defaultValue="W3C") SchemaLanguage schemaLanguage, @Content(primary=true) InputStream content, @Config XmlModule config)
schemas - The path to the schema file. You can specify multiple schema locations by using a comma separatorschemaLanguage - The schema language to use.content - the XML content to validateconfig - the configprotected org.apache.commons.pool2.BasePooledObjectFactory<Validator> createPooledObjectFactory(org.mule.module.xml.internal.operation.SchemaValidatorOperation.SchemaKey key)
createPooledObjectFactory in class PooledTransformerOperation<org.mule.module.xml.internal.operation.SchemaValidatorOperation.SchemaKey,Validator>Copyright © 2026 MuleSoft, Inc.. All rights reserved.