Class IterateMediator

    • Constructor Detail

      • IterateMediator

        public IterateMediator()
    • Method Detail

      • mediate

        public boolean mediate​(MessageContext synCtx)
        Splits the message by iterating over the results of the given Path expression
        Specified by:
        mediate in interface Mediator
        Parameters:
        synCtx - - MessageContext to be mediated
        Returns:
        boolean false if need to stop processing of the parent message
      • 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
      • isContinueParent

        public boolean isContinueParent()
      • setContinueParent

        public void setContinueParent​(boolean continueParent)
      • isPreservePayload

        public boolean isPreservePayload()
      • setPreservePayload

        public void setPreservePayload​(boolean preservePayload)
      • setExpression

        public void setExpression​(SynapsePath expression)
      • setAttachPath

        public void setAttachPath​(SynapsePath attachPath)
      • getTarget

        public Target getTarget()
      • setTarget

        public void setTarget​(Target target)
      • getId

        public String getId()
      • setId

        public void setId​(String id)
      • isContentAltering

        public boolean isContentAltering()
        Description copied from interface: Mediator
        This is used to indicate whether message payload get modified during mediation
        Specified by:
        isContentAltering in interface Mediator
        Overrides:
        isContentAltering in class AbstractMediator
        Returns:
        whether mediator modify the payload
      • isAttachPathPresent

        public boolean isAttachPathPresent()
      • setAttachPathPresent

        public void setAttachPathPresent​(boolean attachPathPresent)
      • 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