Class SmooksMediator

  • All Implemented Interfaces:
    org.apache.synapse.aspects.AspectConfigurable, org.apache.synapse.Mediator, org.apache.synapse.SynapseArtifact

    public class SmooksMediator
    extends org.apache.synapse.mediators.AbstractMediator
    Transforms the current message payload using the given Smooks configuration. The current message context is replaced with the result as XML.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  SmooksMediator.TYPES  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String DISABLE_SMOOKS_RESULT_PAYLOAD  
      • Fields inherited from class org.apache.synapse.mediators.AbstractMediator

        log, trace, traceState
    • Constructor Summary

      Constructors 
      Constructor Description
      SmooksMediator()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String getConfigKey()  
      Input getInput()  
      Output getOutput()  
      String getPersistenceUnitName()  
      boolean mediate​(org.apache.synapse.MessageContext synCtx)  
      void setConfigKey​(String configKey)  
      void setInput​(Input input)  
      void setOutput​(Output output)  
      void setPersistenceUnitAttr​(String persistenceUnitName)  
      • 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, isContentAware, 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

      • DISABLE_SMOOKS_RESULT_PAYLOAD

        public static String DISABLE_SMOOKS_RESULT_PAYLOAD
    • Constructor Detail

      • SmooksMediator

        public SmooksMediator()
    • Method Detail

      • mediate

        public boolean mediate​(org.apache.synapse.MessageContext synCtx)
      • getConfigKey

        public String getConfigKey()
      • setConfigKey

        public void setConfigKey​(String configKey)
      • getInput

        public Input getInput()
      • getOutput

        public Output getOutput()
      • setInput

        public void setInput​(Input input)
      • setOutput

        public void setOutput​(Output output)
      • setPersistenceUnitAttr

        public void setPersistenceUnitAttr​(String persistenceUnitName)
      • getPersistenceUnitName

        public String getPersistenceUnitName()