Class EnrichMediatorUtil


  • public class EnrichMediatorUtil
    extends Object
    This class is used for util functions in Enrich mediator UI.
    • Constructor Detail

      • EnrichMediatorUtil

        public EnrichMediatorUtil()
    • Method Detail

      • getSynapsePathString

        public static String getSynapsePathString​(javax.servlet.http.HttpSession session,
                                                  org.apache.synapse.config.xml.SynapsePath synapsePath,
                                                  String id)
        Given the session and synapsePath this method will register namespaces and return the string value.
        Parameters:
        session - session from management console.
        synapsePath - Xpath or JSONPath.
        id - identifier.
        Returns:
        String value of synapsePath.
      • setExpression

        public static void setExpression​(EnrichMediator enrichMediator,
                                         EnrichUIConstants.CONFIG_ELEMENT_TYPE configElementType,
                                         String expression,
                                         String type,
                                         javax.servlet.http.HttpSession session)
        Set the source and target expressions of the enrich mediator.
        Parameters:
        enrichMediator - mediator bean instance
        configElementType - element type (source or target)
        expression - expression from request
        type - target type from request
        session - browser session