public class FastXSLTMediator
extends org.apache.synapse.mediators.AbstractMediator
implements org.apache.synapse.ManagedLifecycle
Modifier and Type | Field and Description |
---|---|
static String |
RESULT_BUILDER_FACTORY
The name of the attribute that allows to specify the
ResultBuilderFactory . |
static String |
SOURCE_BUILDER_FACTORY
The name of the attribute that allows to specify the
SourceBuilderFactory . |
static String |
USE_DOM_SOURCE_AND_RESULTS
The feature for which deciding switching between DOM and Stream during the
transformation process
|
Constructor and Description |
---|
FastXSLTMediator() |
Modifier and Type | Method and Description |
---|---|
void |
addAllProperties(List<org.apache.synapse.mediators.MediatorProperty> list) |
void |
addAttribute(String name,
String value)
Add an attribute to be set on the
TransformerFactory used by this mediator instance. |
void |
addFeature(String featureName,
boolean isFeatureEnable)
Add a feature to be set on the
TransformerFactory used by this mediator instance. |
void |
addProperty(org.apache.synapse.mediators.MediatorProperty p) |
void |
destroy() |
List<org.apache.synapse.mediators.MediatorProperty> |
getAttributes() |
List<org.apache.synapse.mediators.MediatorProperty> |
getFeatures() |
List<org.apache.synapse.mediators.MediatorProperty> |
getProperties() |
org.apache.synapse.util.resolver.ResourceMap |
getResourceMap() |
org.apache.synapse.util.xpath.SynapseXPath |
getSource() |
String |
getTargetPropertyName() |
org.apache.synapse.mediators.Value |
getXsltKey() |
void |
init(org.apache.synapse.core.SynapseEnvironment arg0) |
boolean |
isContentAware() |
boolean |
mediate(org.apache.synapse.MessageContext context) |
void |
setResourceMap(org.apache.synapse.util.resolver.ResourceMap resourceMap) |
void |
setSource(org.apache.synapse.util.xpath.SynapseXPath source) |
void |
setSourceXPathString(String sourceXPathString) |
void |
setTargetPropertyName(String targetPropertyName) |
void |
setXsltKey(org.apache.synapse.mediators.Value xsltKey) |
auditLog, auditWarn, configure, disableStatistics, disableTracing, divertMediationRoute, enableStatistics, enableTracing, getAspectConfiguration, getCommentsList, getDescription, getInputType, getLastSequenceFaultHandler, getLog, getMediatorName, getMediatorPosition, getOutputType, getRegisteredMediationFlowPoint, getShortDescription, getTraceState, getType, handleException, handleException, isBreakPoint, isContentAltering, isSkipEnabled, isStatisticsEnable, isTraceOn, isTraceOrDebugOn, isTracingEnabled, registerMediationFlowPoint, reportCloseStatistics, reportOpenStatistics, setBreakPoint, setCommentsList, setComponentStatisticsId, setDescription, setEffectiveTraceState, setMediatorPosition, setShortDescription, setSkipEnabled, setTraceState, shouldCaptureTracing, shouldTrace, shouldTrace, traceOrDebug, traceOrDebugWarn, unregisterMediationFlowPoint
public static final String USE_DOM_SOURCE_AND_RESULTS
public static final String SOURCE_BUILDER_FACTORY
SourceBuilderFactory
.public static final String RESULT_BUILDER_FACTORY
ResultBuilderFactory
.public boolean mediate(org.apache.synapse.MessageContext context)
mediate
in interface org.apache.synapse.Mediator
public org.apache.synapse.mediators.Value getXsltKey()
public void setXsltKey(org.apache.synapse.mediators.Value xsltKey)
public void setSourceXPathString(String sourceXPathString)
public org.apache.synapse.util.xpath.SynapseXPath getSource()
public void setSource(org.apache.synapse.util.xpath.SynapseXPath source)
public String getTargetPropertyName()
public void setTargetPropertyName(String targetPropertyName)
public void addProperty(org.apache.synapse.mediators.MediatorProperty p)
public void addFeature(String featureName, boolean isFeatureEnable)
TransformerFactory
used by this mediator instance.
This method can also be used to enable some Synapse specific optimizations and
enhancements as described in the documentation of this class.featureName
- The name of the featureisFeatureEnable
- the desired state of the featureTransformerFactory.setFeature(String, boolean)
,
FastXSLTMediator
public void addAttribute(String name, String value)
TransformerFactory
used by this mediator instance.
This method can also be used to enable some Synapse specific optimizations and
enhancements as described in the documentation of this class.name
- The name of the featurevalue
- should this feature enable?TransformerFactory.setAttribute(String, Object)
,
FastXSLTMediator
public List<org.apache.synapse.mediators.MediatorProperty> getFeatures()
public List<org.apache.synapse.mediators.MediatorProperty> getAttributes()
public void addAllProperties(List<org.apache.synapse.mediators.MediatorProperty> list)
public List<org.apache.synapse.mediators.MediatorProperty> getProperties()
public org.apache.synapse.util.resolver.ResourceMap getResourceMap()
public void setResourceMap(org.apache.synapse.util.resolver.ResourceMap resourceMap)
public boolean isContentAware()
isContentAware
in interface org.apache.synapse.Mediator
isContentAware
in class org.apache.synapse.mediators.AbstractMediator
public void destroy()
destroy
in interface org.apache.synapse.ManagedLifecycle
public void init(org.apache.synapse.core.SynapseEnvironment arg0)
init
in interface org.apache.synapse.ManagedLifecycle
Copyright © 2019 WSO2. All rights reserved.