Class URLRewriteMediator

  • All Implemented Interfaces:
    AspectConfigurable, Mediator, SynapseArtifact

    public class URLRewriteMediator
    extends AbstractMediator
    A mediator capable of rewriting URLs in messages. The input URL can be extracted from the To header of the message or any of the message properties. The rewritten URL can be set as the To header or a message property. URL rewriting is carried out based on a user defined set of rules. This mediator support rewriting entire URLs as well as URL fragments.
    • Constructor Detail

      • URLRewriteMediator

        public URLRewriteMediator()
    • Method Detail

      • mediate

        public boolean mediate​(MessageContext messageContext)
        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.
        Parameters:
        messageContext - the current message for mediation
        Returns:
        true if further mediation should continue
      • getInputProperty

        public String getInputProperty()
      • setInputProperty

        public void setInputProperty​(String inputProperty)
      • getOutputProperty

        public String getOutputProperty()
      • setOutputProperty

        public void setOutputProperty​(String outputProperty)