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
XPathFunctionContext
,
SynapseXPath
Constructor and Description |
---|
SynapseXPathFunctionContext(org.jaxen.FunctionContext parent,
MessageContext synCtx)
Initialises the function context
|
Modifier and Type | Method and Description |
---|---|
org.jaxen.Function |
getFunction(String namespaceURI,
String prefix,
String localName)
Get the function with a given namespace and name.
|
public SynapseXPathFunctionContext(org.jaxen.FunctionContext parent, MessageContext synCtx)
Initialises the function context
parent
- the parent function contextsynCtx
- message to be used for the function initializationXPathFunctionContext
public org.jaxen.Function getFunction(String namespaceURI, String prefix, String localName) throws org.jaxen.UnresolvableException
Only the get-property function is recognized by this class. Any other function will be resolved using the parent function context.
getFunction
in interface org.jaxen.FunctionContext
namespaceURI
- namespace of the function to be resolvedprefix
- string prefix to be resolvedlocalName
- string local name of the functionorg.jaxen.UnresolvableException
- if the function specified does not foundCopyright © 2005-2017 Apache Software Foundation. All Rights Reserved.