Class Source
- java.lang.Object
-
- org.apache.synapse.mediators.elementary.Source
-
public class Source extends Object
The source of the XML node to be stored. The source can be a 1. Property 2. XPath Expression 3. SOAP Envelope 4. SOAP Body If clone is true a clone will be create and stored from the origincal content. Otherwise a reference will be stored. In case of property a OMElement is stored in a property and it will be fetched. In case of a XPath expression, it will be evaluated to get the OMElement In case of SOAPEnvelope entire SOAP envelope will be stored In case of Body, the first child of body will be stored
-
-
Constructor Summary
Constructors Constructor Description Source()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ArrayList<org.apache.axiom.om.OMNode>
evaluate(MessageContext synCtx, SynapseLog synLog)
com.google.gson.JsonElement
evaluateJson(MessageContext synCtx, SynapseLog synLog, com.google.gson.JsonElement sourcePropertyJson)
This method will evaluate a specified source json element.org.apache.axiom.om.OMNode
getInitialInlineOMNode()
String
getInlineKey()
org.apache.axiom.om.OMNode
getInlineOMNode()
String
getProperty()
int
getSourceType()
SynapsePath
getXpath()
boolean
isClone()
void
setClone(boolean clone)
void
setInitialInlineOMNode(org.apache.axiom.om.OMNode inlineOMNodeWithExpressions)
void
setInlineKey(String inlineKey)
void
setInlineOMNode(org.apache.axiom.om.OMNode inlineOMNode)
void
setProperty(String property)
void
setSourceType(int sourceType)
void
setXpath(SynapsePath xpath)
-
-
-
Method Detail
-
evaluate
public ArrayList<org.apache.axiom.om.OMNode> evaluate(MessageContext synCtx, SynapseLog synLog) throws org.jaxen.JaxenException
- Throws:
org.jaxen.JaxenException
-
evaluateJson
public com.google.gson.JsonElement evaluateJson(MessageContext synCtx, SynapseLog synLog, com.google.gson.JsonElement sourcePropertyJson) throws org.jaxen.JaxenException
This method will evaluate a specified source json element.- Parameters:
synCtx
- - Current Message ContextsynLog
- - Default Logger for the packagesourcePropertyJson
- Parsed Json element- Returns:
- A HashMap with the following keys:
[1] "errorsExistInSrcTag" - holds either true or false
[2] "evaluatedSrcJsonElement" - holds the evaluated Json Element as an Object - Throws:
org.jaxen.JaxenException
-
getXpath
public SynapsePath getXpath()
-
setXpath
public void setXpath(SynapsePath xpath)
-
getSourceType
public int getSourceType()
-
setSourceType
public void setSourceType(int sourceType)
-
getProperty
public String getProperty()
-
setProperty
public void setProperty(String property)
-
isClone
public boolean isClone()
-
setClone
public void setClone(boolean clone)
-
setInlineOMNode
public void setInlineOMNode(org.apache.axiom.om.OMNode inlineOMNode)
-
getInlineOMNode
public org.apache.axiom.om.OMNode getInlineOMNode()
-
getInlineKey
public String getInlineKey()
-
setInlineKey
public void setInlineKey(String inlineKey)
-
getInitialInlineOMNode
public org.apache.axiom.om.OMNode getInitialInlineOMNode()
-
setInitialInlineOMNode
public void setInitialInlineOMNode(org.apache.axiom.om.OMNode inlineOMNodeWithExpressions)
-
-