Class 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 Detail

      • Source

        public Source()
    • 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 Context
        synLog - - Default Logger for the package
        sourcePropertyJson - 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
      • 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)