Class 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 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
      • Fields inherited from class org.apache.synapse.mediators.AbstractMediator

        log, trace, traceState
    • 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 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)  
      • 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 the SourceBuilderFactory.
        See Also:
        Constant Field Values
      • RESULT_BUILDER_FACTORY

        public static final String RESULT_BUILDER_FACTORY
        The name of the attribute that allows to specify the ResultBuilderFactory.
        See Also:
        Constant Field Values
    • Constructor Detail

      • FastXSLTMediator

        public FastXSLTMediator()
    • Method Detail

      • mediate

        public boolean mediate​(org.apache.synapse.MessageContext context)
        Specified by:
        mediate in interface org.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 the 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.
        Parameters:
        featureName - The name of the feature
        isFeatureEnable - the desired state of the feature
        See Also:
        TransformerFactory.setFeature(String, boolean), 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 interface org.apache.synapse.Mediator
        Overrides:
        isContentAware in class org.apache.synapse.mediators.AbstractMediator
      • destroy

        public void destroy()
        Specified by:
        destroy in interface org.apache.synapse.ManagedLifecycle
      • init

        public void init​(org.apache.synapse.core.SynapseEnvironment arg0)
        Specified by:
        init in interface org.apache.synapse.ManagedLifecycle