Class SynapseXPathFunctionContext

  • All Implemented Interfaces:
    org.jaxen.FunctionContext

    public class SynapseXPathFunctionContext
    extends Object
    implements org.jaxen.FunctionContext

    XPath function context to be used when resolving XPath functions when using the SynapseXPath and this resolves one function except for the standard XPath functions and Jaxen extension functions.

    The function that has been resolved by this FunctionContext is; get-property(String) which is used to retrieve message context properties

    See Also:
    XPathFunctionContext, SynapseXPath
    • Constructor Detail

      • SynapseXPathFunctionContext

        public SynapseXPathFunctionContext​(org.jaxen.FunctionContext parent,
                                           MessageContext synCtx)

        Initialises the function context

        Parameters:
        parent - the parent function context
        synCtx - message to be used for the function initialization
        See Also:
        XPathFunctionContext
    • Method Detail

      • getFunction

        public org.jaxen.Function getFunction​(String namespaceURI,
                                              String prefix,
                                              String localName)
                                       throws org.jaxen.UnresolvableException
        Get the function with a given namespace and name.

        Only the get-property function is recognized by this class. Any other function will be resolved using the parent function context.

        Specified by:
        getFunction in interface org.jaxen.FunctionContext
        Parameters:
        namespaceURI - namespace of the function to be resolved
        prefix - string prefix to be resolved
        localName - string local name of the function
        Returns:
        resolved function
        Throws:
        org.jaxen.UnresolvableException - if the function specified does not found