Class EnrichMediatorUtil
- java.lang.Object
-
- org.wso2.carbon.mediator.enrich.ui.EnrichMediatorUtil
-
public class EnrichMediatorUtil extends Object
This class is used for util functions in Enrich mediator UI.
-
-
Constructor Summary
Constructors Constructor Description EnrichMediatorUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.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.
-
-
-
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 instanceconfigElementType
- element type (source or target)expression
- expression from requesttype
- target type from requestsession
- browser session
-
-