Class JSONTransformMediator

  • All Implemented Interfaces:
    AspectConfigurable, Mediator, SynapseArtifact

    public class JSONTransformMediator
    extends AbstractMediator
    A mediator to transform XML payload to JSON or JSON to JSON based on a json schema

    Via this mediator we can override the global properties which are used in XML to JSON transformations. These properties can be used individually for each artifact.

    • Constructor Detail

      • JSONTransformMediator

        public JSONTransformMediator()
    • 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.
        Parameters:
        synCtx - the current message for mediation
        Returns:
        true if further mediation should continue
      • getSchemaKey

        public Value getSchemaKey()
      • setSchemaKey

        public void setSchemaKey​(Value schemaKey)