Class PayloadFactoryMediator

    • Field Detail

      • QUOTE_STRING_IN_PAYLOAD_FACTORY_JSON

        public static final String QUOTE_STRING_IN_PAYLOAD_FACTORY_JSON
        See Also:
        Constant Field Values
    • Constructor Detail

      • PayloadFactoryMediator

        public PayloadFactoryMediator()
    • Method Detail

      • mediate

        public boolean mediate​(MessageContext synCtx)
        Contains 2 paths - one when JSON Streaming is in use (mediateJsonStreamPayload) and the other for regular builders (mediatePayload).
        Parameters:
        synCtx - the current message for mediation
        Returns:
      • getFormat

        public String getFormat()
      • setFormat

        public void setFormat​(String format)
      • setType

        public void setType​(String type)
      • getTemplateType

        public String getTemplateType()
      • setTemplateType

        public void setTemplateType​(String templateType)
      • getFormatKey

        public Value getFormatKey()
        To get the key which is used to pick the format definition from the local registry
        Returns:
        return the key which is used to pick the format definition from the local registry
      • setFormatKey

        public void setFormatKey​(Value key)
        To set the local registry key in order to pick the format definition
        Parameters:
        key - the local registry key
      • isFormatDynamic

        public boolean isFormatDynamic()
      • setFormatDynamic

        public void setFormatDynamic​(boolean formatDynamic)
      • 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
      • isEscapeXmlChars

        public boolean isEscapeXmlChars()
      • setEscapeXmlChars

        public void setEscapeXmlChars​(boolean escapeXmlChars)
      • setTemplateProcessor

        public void setTemplateProcessor​(TemplateProcessor templateProcessor)