Class TemplateMediator

  • All Implemented Interfaces:
    AspectConfigurable, ManagedLifecycle, Mediator, ListMediator, SynapseArtifact

    public class TemplateMediator
    extends AbstractListMediator
    This mediator is responsible for handling function templates for synapse. This will parse parameters passed from an mediator and will be made available to sequences defined within this template. parameters will be accessible through synapse 'function stack'. Users should access these through an xpath extension var or function , defined under function scope ie:- $func:p1 or get-property('func','p2')
    • Constructor Detail

      • TemplateMediator

        public TemplateMediator()
    • Method Detail

      • setName

        public void setName​(String name)
      • getName

        public String getName()
      • getArtifactContainerName

        public String getArtifactContainerName()
      • setArtifactContainerName

        public void setArtifactContainerName​(String artifactContainerName)
      • isEdited

        public boolean isEdited()
      • setIsEdited

        public void setIsEdited​(boolean isEdited)
      • getErrorHandler

        public String getErrorHandler()
      • setErrorHandler

        public void setErrorHandler​(String errorHandler)
      • 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
        Overrides:
        mediate in class AbstractListMediator
        Parameters:
        synCtx - the current message for mediation
        Returns:
        true if further mediation should continue
      • popFuncContextFrom

        public void popFuncContextFrom​(MessageContext synCtx)
      • setFileName

        public void setFileName​(String name)
      • getFileName

        public String getFileName()
      • isInitialized

        public boolean isInitialized()
      • isInitializing

        public boolean isInitializing()
      • isDynamic

        public boolean isDynamic()
        Is this a dynamic template?
        Returns:
        true if dynamic
      • setDynamic

        public void setDynamic​(boolean dynamic)
        Mark this as a dynamic template
        Parameters:
        dynamic - true if this is a dynamic template