org.apache.synapse.mediators.elementary
Class Source

java.lang.Object
  extended by 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 original 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
Source()
           
 
Method Summary
 ArrayList<OMNode> evaluate(MessageContext synCtx, SynapseLog synLog)
           
 String getInlineKey()
           
 OMNode getInlineOMNode()
           
 String getProperty()
           
 int getSourceType()
           
 SynapseXPath getXpath()
           
 boolean isClone()
           
 void setClone(boolean clone)
           
 void setInlineKey(String inlineKey)
           
 void setInlineOMNode(OMNode inlineOMNode)
           
 void setProperty(String property)
           
 void setSourceType(int sourceType)
           
 void setXpath(SynapseXPath xpath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Source

public Source()
Method Detail

evaluate

public ArrayList<OMNode> evaluate(MessageContext synCtx,
                                  SynapseLog synLog)
                           throws JaxenException
Throws:
JaxenException

getXpath

public SynapseXPath getXpath()

setXpath

public void setXpath(SynapseXPath 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(OMNode inlineOMNode)

getInlineOMNode

public OMNode getInlineOMNode()

getInlineKey

public String getInlineKey()

setInlineKey

public void setInlineKey(String inlineKey)


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.