Interface SynapseXpathVariableResolver


  • public interface SynapseXpathVariableResolver

    This XPath Variable Resolver Interface must be implemented when resolving custom XPath Variable contexts Any xpath function that can't be resolved by SynapseXPathVariableContext will be delegated to this interface. Users should implement this API to resolve custom variable contexts ie:- expression="$Custom_Property_Scope:C_PROPERTY" OR expression="$CUSTOM_RESP/urn:child" , ... Extensions can be registered in synapse.properties under synapse.xpath.var.extensions

    See Also:
    SynapseXPathVariableContext
    • Method Detail

      • resolve

        Object resolve​(MessageContext msgCtxt)
        This method should implement the resolving code for custom xpath variable for the registered QName given by #getResolvingQName().
        Parameters:
        msgCtxt - Synapse Message Context
        Returns:
        resolved object for custom xpath variable
      • getResolvingQName

        QName getResolvingQName()
        Should Implement this API to return supported custom expression
        Returns:
        This should return the supported QName (localname + prefix + namespace URI combination ) for this extension