Class FastXSLTMediator
- java.lang.Object
-
- org.apache.synapse.mediators.AbstractMediator
-
- org.wso2.carbon.mediator.fastXSLT.FastXSLTMediator
-
- All Implemented Interfaces:
org.apache.synapse.aspects.AspectConfigurable
,org.apache.synapse.ManagedLifecycle
,org.apache.synapse.Mediator
,org.apache.synapse.SynapseArtifact
public class FastXSLTMediator extends org.apache.synapse.mediators.AbstractMediator implements org.apache.synapse.ManagedLifecycle
-
-
Field Summary
Fields Modifier and Type Field Description static String
RESULT_BUILDER_FACTORY
The name of the attribute that allows to specify theResultBuilderFactory
.static String
SOURCE_BUILDER_FACTORY
The name of the attribute that allows to specify theSourceBuilderFactory
.static String
USE_DOM_SOURCE_AND_RESULTS
The feature for which deciding switching between DOM and Stream during the transformation process
-
Constructor Summary
Constructors Constructor Description FastXSLTMediator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAllProperties(List<org.apache.synapse.mediators.MediatorProperty> list)
void
addAttribute(String name, String value)
Add an attribute to be set on theTransformerFactory
used by this mediator instance.void
addFeature(String featureName, boolean isFeatureEnable)
Add a feature to be set on theTransformerFactory
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)
-
Methods inherited from class org.apache.synapse.mediators.AbstractMediator
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
-
-
-
-
Field Detail
-
USE_DOM_SOURCE_AND_RESULTS
public static final String USE_DOM_SOURCE_AND_RESULTS
The feature for which deciding switching between DOM and Stream during the transformation process- See Also:
- Constant Field Values
-
SOURCE_BUILDER_FACTORY
public static final String SOURCE_BUILDER_FACTORY
The name of the attribute that allows to specify theSourceBuilderFactory
.- See Also:
- Constant Field Values
-
RESULT_BUILDER_FACTORY
public static final String RESULT_BUILDER_FACTORY
The name of the attribute that allows to specify theResultBuilderFactory
.- See Also:
- Constant Field Values
-
-
Method Detail
-
mediate
public boolean mediate(org.apache.synapse.MessageContext context)
- Specified by:
mediate
in interfaceorg.apache.synapse.Mediator
-
getXsltKey
public org.apache.synapse.mediators.Value getXsltKey()
-
setXsltKey
public void setXsltKey(org.apache.synapse.mediators.Value xsltKey)
-
setSourceXPathString
public void setSourceXPathString(String sourceXPathString)
-
getSource
public org.apache.synapse.util.xpath.SynapseXPath getSource()
-
setSource
public void setSource(org.apache.synapse.util.xpath.SynapseXPath source)
-
getTargetPropertyName
public String getTargetPropertyName()
-
setTargetPropertyName
public void setTargetPropertyName(String targetPropertyName)
-
addProperty
public void addProperty(org.apache.synapse.mediators.MediatorProperty p)
-
addFeature
public void addFeature(String featureName, boolean isFeatureEnable)
Add a feature to be set on theTransformerFactory
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.- Parameters:
featureName
- The name of the featureisFeatureEnable
- the desired state of the feature- See Also:
TransformerFactory.setFeature(String, boolean)
,FastXSLTMediator
-
addAttribute
public void addAttribute(String name, String value)
Add an attribute to be set on theTransformerFactory
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.- Parameters:
name
- The name of the featurevalue
- should this feature enable?- See Also:
TransformerFactory.setAttribute(String, Object)
,FastXSLTMediator
-
getFeatures
public List<org.apache.synapse.mediators.MediatorProperty> getFeatures()
- Returns:
- Return the features explicitly set to the TransformerFactory through this mediator.
-
getAttributes
public List<org.apache.synapse.mediators.MediatorProperty> getAttributes()
- Returns:
- Return the attributes explicitly set to the TransformerFactory through this mediator.
-
addAllProperties
public void addAllProperties(List<org.apache.synapse.mediators.MediatorProperty> list)
-
getProperties
public List<org.apache.synapse.mediators.MediatorProperty> getProperties()
-
getResourceMap
public org.apache.synapse.util.resolver.ResourceMap getResourceMap()
-
setResourceMap
public void setResourceMap(org.apache.synapse.util.resolver.ResourceMap resourceMap)
-
isContentAware
public boolean isContentAware()
- Specified by:
isContentAware
in interfaceorg.apache.synapse.Mediator
- Overrides:
isContentAware
in classorg.apache.synapse.mediators.AbstractMediator
-
destroy
public void destroy()
- Specified by:
destroy
in interfaceorg.apache.synapse.ManagedLifecycle
-
init
public void init(org.apache.synapse.core.SynapseEnvironment arg0)
- Specified by:
init
in interfaceorg.apache.synapse.ManagedLifecycle
-
-