public class EnrichMediatorUtil extends Object
Constructor and Description |
---|
EnrichMediatorUtil() |
Modifier and Type | Method and 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.
|
public static String getSynapsePathString(javax.servlet.http.HttpSession session, org.apache.synapse.config.xml.SynapsePath synapsePath, String id)
session
- session from management console.synapsePath
- Xpath or JSONPath.id
- identifier.public static void setExpression(EnrichMediator enrichMediator, EnrichUIConstants.CONFIG_ELEMENT_TYPE configElementType, String expression, String type, javax.servlet.http.HttpSession session)
enrichMediator
- mediator bean instanceconfigElementType
- element type (source or target)expression
- expression from requesttype
- target type from requestsession
- browser sessionCopyright © 2020 WSO2. All rights reserved.