| java.lang.Object org.apache.synapse.mediators.AbstractMediator org.apache.synapse.mediators.xquery.XQueryMediator
XQueryMediator | public class XQueryMediator extends AbstractMediator (Code) | | The XQueryMediator provides the means to extract and manipulate data from XML documents using
XQuery . It is possible to query against the current SOAP Message or external XML. To query
against the current SOAP Message ,it is need to define custom variable with any name and type as
element,document,document_element By providing a expression ,It is possible to select a custom
node for querying.The all the variable that have defined in the mediator will be available
during the query process .Basic variable can use bind basic type.
currently only support * string,int,byte,short,double,long,float and boolean * types.
Custom Variable can use to bind XML documents ,SOAP payload and any basic type which create
through the XPath expression .
|
DEFAULT_XPATH | final public static String DEFAULT_XPATH(Code) | | The default xpath to get the first child of the SOAPBody
|
XQueryMediator | public XQueryMediator()(Code) | | |
addAllDataSoureProperties | public void addAllDataSoureProperties(List list)(Code) | | |
addAllVariables | public void addAllVariables(List list)(Code) | | |
getDataSourceProperties | public List getDataSourceProperties()(Code) | | |
getTarget | public AXIOMXPath getTarget()(Code) | | |
getTargetNode | public OMNode getTargetNode(MessageContext synCtx)(Code) | | Return the OMNode to be used for the attached the query result. If a target XPath is not specified,
this will default to the first child of the SOAP body i.e. - //*:Envelope/*:Body/child::*
Parameters: synCtx - the message context the OMNode against which the result should be attached |
isUseDOMSource | public boolean isUseDOMSource()(Code) | | |
mediate | public boolean mediate(MessageContext synCtx)(Code) | | Performs the query and attached the result to the target Node
Parameters: synCtx - The current message true always |
setQuerySource | public void setQuerySource(String querySource)(Code) | | |
setTarget | public void setTarget(AXIOMXPath target)(Code) | | |
setUseDOMSource | public void setUseDOMSource(boolean useDOMSource)(Code) | | |
|
|