Class InvokeMediator

    • Constructor Detail

      • InvokeMediator

        public InvokeMediator()
    • Method Detail

      • mediate

        public boolean mediate​(MessageContext synCtx)
        Description copied from interface: Mediator
        Invokes the mediator passing the current message for mediation. Each mediator performs its mediation action, and returns true if mediation should continue, or false if further mediation should be aborted.
        Specified by:
        mediate in interface Mediator
        Parameters:
        synCtx - the current message for mediation
        Returns:
        true if further mediation should continue
      • mediate

        public boolean mediate​(MessageContext synCtx,
                               ContinuationState continuationState)
        Description copied from interface: FlowContinuableMediator
        Mediate the message using a ContinuationState. This is used when mediating the response message when service is invoked using a Call Mediator.
        Specified by:
        mediate in interface FlowContinuableMediator
        Parameters:
        synCtx - MessageContext
        continuationState - ContinuationState
        Returns:
        whether mediation flow is completed
      • getTargetTemplate

        public String getTargetTemplate()
      • setTargetTemplate

        public void setTargetTemplate​(String targetTemplate)
      • setErrorHandler

        public void setErrorHandler​(String errorHandler)
      • getErrorHandler

        public String getErrorHandler()
      • getpName2ExpressionMap

        public Map<String,​Value> getpName2ExpressionMap()
      • addExpressionForParamName

        public void addExpressionForParamName​(String pName,
                                              Value expr)
      • isDynamicMediator

        public boolean isDynamicMediator()
      • setDynamicMediator

        public void setDynamicMediator​(boolean dynamicMediator)
      • getKey

        public Value getKey()
      • setKey

        public void setKey​(Value key)
      • setLocalEntryKey

        public void setLocalEntryKey​(String localEntryKey)
      • getLocalEntryKey

        public String getLocalEntryKey()
      • getPackageName

        public String getPackageName()
      • setPackageName

        public void setPackageName​(String packageName)
      • init

        public void init​(SynapseEnvironment se)
        Description copied from interface: ManagedLifecycle
        This method should implement the initialization of the implemented parts of the configuration.
        Specified by:
        init in interface ManagedLifecycle
        Parameters:
        se - SynapseEnvironment to be used for initialization
      • destroy

        public void destroy()
        Description copied from interface: ManagedLifecycle
        This method should implement the destroying of the implemented parts of the configuration.
        Specified by:
        destroy in interface ManagedLifecycle