public class XQueryOperation extends PooledTransformerOperation<String,javax.xml.xquery.XQPreparedExpression>
documentBuilderFactory, entityResolver, expandEntities| Constructor and Description |
|---|
XQueryOperation() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.commons.pool2.BasePooledObjectFactory<javax.xml.xquery.XQPreparedExpression> |
createPooledObjectFactory(String xquery) |
protected void |
doInitialise() |
protected boolean |
testOnReturn() |
List<String> |
xqueryTransform(InputStream content,
String xquery,
Map<String,Object> contextProperties,
XmlModule config,
boolean addTrailingNewlines)
Uses XQuery to transform the input content.
|
initialise, start, stop, withTransformerprotected void doInitialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
doInitialise in class PooledTransformerOperation<String,javax.xml.xquery.XQPreparedExpression>org.mule.runtime.api.lifecycle.InitialisationException@Execution(value=CPU_INTENSIVE) @Throws(value=StandardXmlErrorTypeProvider.class) public List<String> xqueryTransform(@Content(primary=true) InputStream content, @Text String xquery, @Optional @Content @NullSafe Map<String,Object> contextProperties, @Config XmlModule config, @Optional(defaultValue="false") boolean addTrailingNewlines)
content - the XML content to transformxquery - The XQuery script definitioncontextProperties - Properties that wil be made available to the transform context.config - the config objectaddTrailingNewlines - adds a newline character (\n) at the end of every xml-part resultprotected org.apache.commons.pool2.BasePooledObjectFactory<javax.xml.xquery.XQPreparedExpression> createPooledObjectFactory(String xquery)
createPooledObjectFactory in class PooledTransformerOperation<String,javax.xml.xquery.XQPreparedExpression>protected boolean testOnReturn()
testOnReturn in class PooledTransformerOperation<String,javax.xml.xquery.XQPreparedExpression>Copyright © 2026 MuleSoft, Inc.. All rights reserved.