Class MediatorCustomVariable
java.lang.Object
org.apache.synapse.mediators.xquery.MediatorVariable
org.apache.synapse.mediators.xquery.MediatorCustomVariable
The value of the custom variable will be evaluated dynamically.
The value is computed by extracting the data from the XML document which will lookup through the
key or the current SOAP message.
-
Field Summary
Fields inherited from class org.apache.synapse.mediators.xquery.MediatorVariable
value -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluateValue(org.apache.synapse.MessageContext synCtx) To assign a value to variable dynamicallyorg.apache.synapse.util.xpath.SynapseXPathvoidsetExpression(org.apache.synapse.util.xpath.SynapseXPath expression) voidMethods inherited from class org.apache.synapse.mediators.xquery.MediatorVariable
getName, getNodeKind, getType, getValue, setName, setNodeKind, setType, setValue
-
Constructor Details
-
MediatorCustomVariable
-
-
Method Details
-
evaluateValue
public boolean evaluateValue(org.apache.synapse.MessageContext synCtx) To assign a value to variable dynamically- Specified by:
evaluateValuein classMediatorVariable- Parameters:
synCtx- The current message context- Returns:
trueif the value has changed
-
setExpression
public void setExpression(org.apache.synapse.util.xpath.SynapseXPath expression) -
setRegKey
-
getRegKey
-
getExpression
public org.apache.synapse.util.xpath.SynapseXPath getExpression()
-