Package org.apache.synapse.util.xpath
Class SynapseXPathFunctionContext
- java.lang.Object
-
- org.apache.synapse.util.xpath.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 Summary
Constructors Constructor Description SynapseXPathFunctionContext(org.jaxen.FunctionContext parent, MessageContext synCtx)
Initialises the function context
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.jaxen.Function
getFunction(String namespaceURI, String prefix, String localName)
Get the function with a given namespace and name.
-
-
-
Constructor Detail
-
SynapseXPathFunctionContext
public SynapseXPathFunctionContext(org.jaxen.FunctionContext parent, MessageContext synCtx)
Initialises the function context
- Parameters:
parent
- the parent function contextsynCtx
- 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 interfaceorg.jaxen.FunctionContext
- Parameters:
namespaceURI
- namespace of the function to be resolvedprefix
- string prefix to be resolvedlocalName
- string local name of the function- Returns:
- resolved function
- Throws:
org.jaxen.UnresolvableException
- if the function specified does not found
-
-