public class TransformerPool extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TransformerPool.OutputType |
Modifier and Type | Field and Description |
---|---|
protected static org.apache.logging.log4j.Logger |
log |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closing the Pool doesn't automatically mean all references remaining in the pool will be terminated.
|
static TransformerPool |
configureStyleSheetTransformer(IConfigurationAware scopeProvider,
String styleSheetName,
int xsltVersion) |
static TransformerPool |
configureTransformer(IConfigurationAware scopeProvider,
String namespaceDefs,
String xPathExpression,
String styleSheetName,
TransformerPool.OutputType outputType,
boolean includeXmlDeclaration,
ParameterList params) |
static TransformerPool |
configureTransformer(IConfigurationAware scopeProvider,
String namespaceDefs,
String xPathExpression,
String styleSheetName,
TransformerPool.OutputType outputType,
boolean includeXmlDeclaration,
ParameterList params,
boolean mandatory) |
static TransformerPool |
configureTransformer0(IConfigurationAware scopeProvider,
String namespaceDefs,
String xPathExpression,
String styleSheetName,
TransformerPool.OutputType outputType,
boolean includeXmlDeclaration,
ParameterList params,
int xsltVersion) |
protected Transformer |
createTransformer() |
Map<String,String> |
getConfigMap() |
Boolean |
getDisableOutputEscaping() |
Boolean |
getIndent() |
static TransformerPool |
getInstance(Resource resource) |
static TransformerPool |
getInstance(Resource resource,
int xsltVersion) |
static TransformerPool |
getInstance(String xsltString)
Deprecated.
Use Resource or UtilityInstance instead! This can/will cause memory leaks upon reloading configurations!!!
|
static TransformerPool |
getInstance(String xsltString,
int xsltVersion)
Deprecated.
Use Resource or UtilityInstance instead! This can/will cause memory leaks upon reloading configurations!!!
|
Boolean |
getOmitXmlDeclaration() |
String |
getOutputMethod() |
protected Transformer |
getTransformer() |
TransformerFilter |
getTransformerFilter(ThreadConnector<?> threadConnector,
ContentHandler handler) |
TransformerFilter |
getTransformerFilter(ThreadConnector<?> threadConnector,
ContentHandler handler,
boolean removeNamespacesFromInput,
boolean handleLexicalEvents) |
TransformerHandler |
getTransformerHandler() |
static TransformerPool |
getUtilityInstance(String xsltString,
int xsltVersion)
Special utility method to create a new TransformerPool without a ClassLoader.
|
static TransformerPool |
getXPathTransformerPool(String namespaceDefs,
String xPathExpression,
TransformerPool.OutputType outputType,
boolean includeXmlDeclaration,
ParameterList params) |
static TransformerPool |
getXPathTransformerPool(String namespaceDefs,
String xPathExpression,
TransformerPool.OutputType outputType,
boolean includeXmlDeclaration,
ParameterList params,
int xsltVersion) |
protected void |
invalidateTransformer(Transformer t) |
protected void |
invalidateTransformerNoThrow(Transformer transformer) |
void |
open() |
protected void |
releaseTransformer(Transformer t) |
String |
transform(Document d,
Map<String,Object> parameters) |
String |
transform(Message m,
Map<String,Object> parameters) |
String |
transform(Message m,
Map<String,Object> parameters,
boolean namespaceAware) |
String |
transform(Source s) |
String |
transform(Source s,
Map<String,Object> parameters) |
String |
transform(Source s,
ParameterValueList pvl) |
String |
transform(Source s,
Result r) |
String |
transform(Source s,
Result r,
Map<String,Object> parameters) |
String |
transform(Source s,
Result r,
ParameterValueList pvl) |
String |
transform(String s,
Map<String,Object> parameters) |
String |
transform(String s,
Map<String,Object> parameters,
boolean namespaceAware) |
@Deprecated public static TransformerPool getInstance(String xsltString) throws TransformerConfigurationException
@Deprecated public static TransformerPool getInstance(String xsltString, int xsltVersion) throws TransformerConfigurationException
public static TransformerPool getUtilityInstance(String xsltString, int xsltVersion) throws TransformerConfigurationException
public static TransformerPool getInstance(Resource resource) throws TransformerConfigurationException, IOException
public static TransformerPool getInstance(Resource resource, int xsltVersion) throws TransformerConfigurationException, IOException
public static TransformerPool configureTransformer(IConfigurationAware scopeProvider, String namespaceDefs, String xPathExpression, String styleSheetName, TransformerPool.OutputType outputType, boolean includeXmlDeclaration, ParameterList params, boolean mandatory) throws ConfigurationException
ConfigurationException
public static TransformerPool configureTransformer(IConfigurationAware scopeProvider, String namespaceDefs, String xPathExpression, String styleSheetName, TransformerPool.OutputType outputType, boolean includeXmlDeclaration, ParameterList params) throws ConfigurationException
ConfigurationException
public static TransformerPool configureTransformer0(IConfigurationAware scopeProvider, String namespaceDefs, String xPathExpression, String styleSheetName, TransformerPool.OutputType outputType, boolean includeXmlDeclaration, ParameterList params, int xsltVersion) throws ConfigurationException
ConfigurationException
public static TransformerPool configureStyleSheetTransformer(IConfigurationAware scopeProvider, String styleSheetName, int xsltVersion) throws ConfigurationException
ConfigurationException
public static TransformerPool getXPathTransformerPool(String namespaceDefs, String xPathExpression, TransformerPool.OutputType outputType, boolean includeXmlDeclaration, ParameterList params) throws ConfigurationException
ConfigurationException
public static TransformerPool getXPathTransformerPool(String namespaceDefs, String xPathExpression, TransformerPool.OutputType outputType, boolean includeXmlDeclaration, ParameterList params, int xsltVersion) throws ConfigurationException
ConfigurationException
public void open()
public void close()
protected Transformer getTransformer() throws TransformerConfigurationException
protected void releaseTransformer(Transformer t) throws TransformerConfigurationException
protected void invalidateTransformer(Transformer t) throws Exception
Exception
protected void invalidateTransformerNoThrow(Transformer transformer)
protected Transformer createTransformer() throws TransformerConfigurationException
public String transform(Document d, Map<String,Object> parameters) throws TransformerException, IOException
TransformerException
IOException
public String transform(Message m, Map<String,Object> parameters) throws TransformerException, IOException, SAXException
public String transform(Message m, Map<String,Object> parameters, boolean namespaceAware) throws TransformerException, IOException, SAXException
public String transform(String s, Map<String,Object> parameters) throws TransformerException, IOException, SAXException
public String transform(String s, Map<String,Object> parameters, boolean namespaceAware) throws TransformerException, IOException, SAXException
public String transform(Source s) throws TransformerException, IOException
TransformerException
IOException
public String transform(Source s, ParameterValueList pvl) throws TransformerException, IOException
TransformerException
IOException
public String transform(Source s, Map<String,Object> parameters) throws TransformerException, IOException
TransformerException
IOException
public String transform(Source s, Result r) throws TransformerException, IOException
TransformerException
IOException
public String transform(Source s, Result r, ParameterValueList pvl) throws TransformerException, IOException
TransformerException
IOException
public String transform(Source s, Result r, Map<String,Object> parameters) throws TransformerException, IOException
TransformerException
IOException
public TransformerHandler getTransformerHandler() throws TransformerConfigurationException
public TransformerFilter getTransformerFilter(ThreadConnector<?> threadConnector, ContentHandler handler) throws TransformerConfigurationException
public TransformerFilter getTransformerFilter(ThreadConnector<?> threadConnector, ContentHandler handler, boolean removeNamespacesFromInput, boolean handleLexicalEvents) throws TransformerConfigurationException
public Map<String,String> getConfigMap() throws TransformerException, IOException, SAXException
public Boolean getOmitXmlDeclaration() throws TransformerException, IOException, SAXException
public Boolean getIndent() throws TransformerException, IOException, SAXException
public String getOutputMethod() throws TransformerException, IOException, SAXException
public Boolean getDisableOutputEscaping() throws TransformerException, IOException, SAXException
Copyright © 2023 Frank!Framework. All rights reserved.