public interface XMLSupport
Modifier and Type | Method and Description |
---|---|
void |
addAttributeToElements(Message msg,
java.lang.String exprn,
java.lang.String[][] ns,
java.lang.String qName,
java.lang.String nsUri,
java.lang.String value)
Deprecated.
in favor of
#addAttributeToElements(org.adroitlogic.ultraesb.api.Message, String, String, String, String, String[]...)
Add an attribute to one or more elements selected by an XPath expression
e.g. domSupport.addAttributeToElements(msg, "//order/symbol", null, "att1", null, "value1"); |
void |
addAttributeToElements(Message msg,
java.lang.String exprn,
java.lang.String qName,
java.lang.String nsUri,
java.lang.String value,
java.lang.String[][] ns)
Add an attribute to one or more elements selected by an XPath expression
e.g.
|
void |
addElementsAsChild(Message msg,
java.lang.String expression,
java.lang.String[][] ns,
java.lang.String qualifiedTagName,
java.lang.String namespace)
Deprecated.
in favor of
#addElementsAsChild(org.adroitlogic.ultraesb.api.Message, String, String, String, String[]...)
Inserts Element as a child to the specified elements pointed by an xpath expression |
void |
addElementsAsChild(Message msg,
java.lang.String expression,
java.lang.String qualifiedTagName,
java.lang.String namespace,
java.lang.String[][] ns)
Inserts Element as a child to the specified elements pointed by an xpath expression
|
void |
addTextElementsAsChild(Message msg,
java.lang.String expression,
java.lang.String[][] ns,
java.lang.String qualifiedTagName,
java.lang.String namespace,
java.lang.String elementContent)
Deprecated.
in favor of
#addTextElementsAsChild(org.adroitlogic.ultraesb.api.Message, String, String, String, String, String[]...)
Inserts Text Element as a child to the specified elements pointed by an xpath expression |
void |
addTextElementsAsChild(Message msg,
java.lang.String expression,
java.lang.String qualifiedTagName,
java.lang.String namespace,
java.lang.String elementContent,
java.lang.String[][] ns)
Inserts Text Element as a child to the specified elements pointed by an xpath expression
|
void |
aggregateWithBean(java.lang.String beanName,
Message msg)
Aggregate message using the Split-Aggregation Spring bean configuration
|
void |
convertDOMToSoap11(Message m)
Converts a DOM message to SOAP 1.1 by wrapping the message in a SOAP envelope and body
|
void |
convertDOMToSoap12(Message m)
Converts a DOM message to SOAP 1.2 by wrapping the message in a SOAP envelope and body
|
void |
convertFromFI(Message m)
Convert the payload of the current message from a FastInfoset binary to an XML message
(Note the XML payload is still kept as a RawFileMessage by default and maybe converted into a DOM message if required)
|
void |
convertSoapToDOM(Message m)
Converts a SOAP message to DOM (POX) by stripping out the SOAP Envelope and Body and Header
|
void |
convertToDOM(Message m)
Convert the current message into a DOMMessage
|
void |
convertToFI(Message m)
Convert the XML message into a FastInfoset binary message
|
java.lang.Object |
convertXMLToJAXBObject(Message msg,
java.lang.Class clazz)
Converts a XML payload into a JAXB Object.
|
java.lang.Object |
convertXMLToJAXBObject(Message msg,
java.lang.String contextPath,
java.lang.Class clazz)
Converts a XML payload into a JAXB Object.
|
void |
convertXMLToJSONStream(Message m)
Convert the current XML message payload (which maybe available as any format such as raw file or DOM etc)
into a file based JSON stream
|
void |
convertXMLToJSONStream(Message m,
javax.xml.namespace.QName staringElement,
boolean retainNSPrefixes)
Convert the current XML message payload (which maybe available as any format such as raw file or DOM etc)
into a file based JSON stream
|
org.w3c.dom.Document |
createDOMDocument()
Create a new DOM Document object and return
|
void |
deleteAttributes(Message msg,
java.lang.String exprn,
java.lang.String[][] ns)
Deletes the specified attribute/s
e.g.
|
void |
deleteElements(Message msg,
java.lang.String expression,
java.lang.String[][] ns)
Delete Elements pointed by an xpath expression
|
org.w3c.dom.NodeList |
extractAsNodeListUsingXPath(Message m,
java.lang.String exprn,
java.lang.String[][] ns)
Evaluate the given XPath expression against the XML payload, and return result as a NodeList
This method converts the current payload into a DOMMessage
|
org.w3c.dom.NodeList |
extractAsNodeListUsingXPath(org.w3c.dom.Node n,
java.lang.String exprn,
java.lang.String[][] ns) |
java.lang.String |
extractAsStringUsingXPath(Message m,
java.lang.String exprn,
java.lang.String[][] ns)
Evaluate the given XPath expression against the XML payload, and return result as a String
This method converts the current payload into a DOMMessage
|
java.lang.String |
extractAsStringUsingXPath(org.w3c.dom.Node n,
java.lang.String exprn,
java.lang.String[][] ns)
Evaluate the given XPath expression against the DOM node, and return result as a String
|
java.lang.String |
extractAsStringUsingXPath(java.lang.String s,
java.lang.String exprn,
java.lang.String[][] ns)
Evaluate the given XPath expression against the XML payload contained in a String, and return result as a String.
|
boolean |
filter(Message m,
java.lang.String exprn,
java.lang.String[][] ns)
Evaluate the given boolean XPath expression over the XML payload
|
boolean |
filter(Message m,
java.lang.String exprn,
java.lang.String[][] ns,
java.lang.String regex)
Deprecated.
in favor of
#filter(org.adroitlogic.ultraesb.api.Message, String, String, String[]...)
Evaluate the given XPath expression over the XML payload and compare the resulting String value with the
regular expression for a match. This method converts the current payload into a DOMMessage |
boolean |
filter(Message m,
java.lang.String exprn,
java.lang.String regex,
java.lang.String[][] ns)
Evaluate the given XPath expression over the XML payload and compare the resulting String value with the
regular expression for a match.
|
java.lang.String |
getAttribute(Message msg,
java.lang.String exprn,
java.lang.String[][] ns)
Get attribute value e.g.
|
org.w3c.dom.Document |
getPayloadAsDOM(Message m)
Returns payload of the message as a DOM Document
|
java.lang.String |
getTextElement(Message msg,
java.lang.String exprn,
java.lang.String[][] ns)
Get text element value for given XPath
|
void |
insertTextElementsAfter(Message msg,
java.lang.String expression,
java.lang.String[][] ns,
java.lang.String qualifiedTagName,
java.lang.String namespace,
java.lang.String elementContent)
Deprecated.
in favor of
#insertTextElementsAfter(org.adroitlogic.ultraesb.api.Message, String, String, String, String, String[]...)
Inserts an element/elements after the specified element pointed by the XPATH, to the current message. If the
XPath expression points to multiple elements, new element will be added after all the elements pointed by the
XPath.The content of the new element should be String. No complex types are allowed. |
void |
insertTextElementsAfter(Message msg,
java.lang.String expression,
java.lang.String qualifiedTagName,
java.lang.String namespace,
java.lang.String elementContent,
java.lang.String[][] ns)
Inserts an element/elements after the specified element pointed by the XPATH, to the current message.
|
void |
insertTextElementsBefore(Message msg,
java.lang.String expression,
java.lang.String[][] ns,
java.lang.String qualifiedTagName,
java.lang.String namespace,
java.lang.String elementContent)
Deprecated.
in favor of
#insertTextElementsBefore(org.adroitlogic.ultraesb.api.Message, String, String, String, String, String[]...)
Inserts an element/elements before the specified element pointed by the XPATH, to the current message. If the
XPath expression points to multiple elements, new element will be added before all the elements pointed by the
XPath. The content of the new element should be String. No complex types are allowed. |
void |
insertTextElementsBefore(Message msg,
java.lang.String expression,
java.lang.String qualifiedTagName,
java.lang.String namespace,
java.lang.String elementContent,
java.lang.String[][] ns)
Inserts an element/elements before the specified element pointed by the XPATH, to the current message.
|
void |
mergeXMLAttachmentsUnderElement(Message msg,
java.lang.String rootElemName)
Replace the current XML payload with a top level element as specified, and merge the payloads
from the current body, and attachments underneath that
|
void |
mergeXMLAttachmentsUnderElement(Message msg,
java.lang.String rootElemName,
java.lang.String rootNS)
Replace the current XML payload with a top level element as specified, and merge the payloads
from the current body, and attachments underneath that
|
boolean |
remove(Message m,
java.lang.String exprn,
java.lang.String[][] ns)
Remove the XPath expression specified node from the XML payload.
|
void |
replaceAttributes(Message msg,
java.lang.String expression,
java.lang.String[][] ns,
java.lang.String value)
Deprecated.
in favor of
#replaceAttributes(org.adroitlogic.ultraesb.api.Message, String, String, String[]...)
Replaces the specified attribute/s value |
void |
replaceAttributes(Message msg,
java.lang.String expression,
java.lang.String value,
java.lang.String[][] ns)
Replaces the specified attribute/s value
|
void |
replaceTextElements(Message msg,
java.lang.String expression,
java.lang.String[][] ns,
java.lang.String elementContent)
Deprecated.
in favor of
#replaceTextElements(org.adroitlogic.ultraesb.api.Message, String, String, String[]...)
Replace Text Elements pointed by an xpath expression |
void |
replaceTextElements(Message msg,
java.lang.String expression,
java.lang.String elementContent,
java.lang.String[][] ns)
Replace Text Elements pointed by an xpath expression
|
void |
retainElementAsPayload(Message m,
java.lang.String exprn,
java.lang.String[][] ns)
Replace the current XML payload with the resulting element from the XPath expression result
|
void |
serializeJAXBObjectAsXMLStream(Message msg,
java.lang.Object jaxb)
Serialize a JAXB Object as a XML Stream message
|
void |
serializeJAXBObjectAsXMLStream(Message msg,
java.lang.Object jaxb,
java.lang.String rootElement,
java.lang.String uri)
Serialize a JAXB Object as a XML Stream message
|
void |
serializeJAXBObjectAsXMLStream(Message msg,
java.lang.String contextPath,
java.lang.Object jaxb)
Serialize a JAXB Object as a XML Stream message
|
void |
serializeJAXBObjectAsXMLStream(Message msg,
java.lang.String contextPath,
java.lang.Object jaxb,
java.lang.String rootElement,
java.lang.String uri)
Serialize a JAXB Object as a XML Stream message
|
void |
setPayloadFromDOM(Message m,
org.w3c.dom.Document doc)
Set the payload of the message with the DOM Document
|
void |
splitAndProcess(Message msg,
java.lang.String exprn,
java.lang.String[][] ns,
java.lang.String sequenceName,
boolean ignoreErrors)
Deprecated.
in favor of
#splitAndProcess(org.adroitlogic.ultraesb.api.Message, String, String, boolean, String[]...)
Split current message into multiple messages using the given XPath expression, and hand over each such
message to the given sequence |
void |
splitAndProcess(Message msg,
java.lang.String exprn,
java.lang.String sequenceName,
boolean ignoreErrors,
java.lang.String[][] ns)
Split current message into multiple messages using the given XPath expression, and hand over each such
message to the given sequence
|
void |
splitWithBean(java.lang.String beanName,
Message msg)
Split message using the Split-Aggregation Spring bean configuration
|
void |
transform(Message msg,
java.lang.String xsltFilename)
Transform the message payload by XSLT (without any parameters), assuming a non DOM result and assuming that the
complete message payload will be used as the source of the transformation, and the result will replace the
complete message payload
|
void |
transform(Message msg,
java.lang.String xsltFilename,
java.lang.String exprn,
boolean domResult,
java.util.Map parameters,
java.lang.String[][] ns)
Transform the message payload by XSLT
|
void |
transform(Message msg,
java.lang.String xsltFilename,
java.lang.String exprn,
java.lang.String[][] ns)
Transform the message payload by XSLT (without any parameters), assuming a non DOM result
|
void |
transform(Message msg,
java.lang.String xsltFilename,
java.lang.String exprn,
java.lang.String[][] ns,
boolean domResult,
java.util.Map parameters)
Deprecated.
in favor of
#transform(org.adroitlogic.ultraesb.api.Message, String, String, boolean, java.util.Map, String[]...)
Transform the message payload by XSLT |
void |
validate(Message m,
java.lang.String[] schemas)
Validate the current message against one or more schemas
|
void |
validate(Message m,
java.lang.String[] schemas,
java.lang.String exprn,
java.lang.String[][] ns)
Validate the current message - or an element of it selected via an XPath expression - against one or more schemas
|
void |
validate(org.w3c.dom.Node n,
java.lang.String[] schemas)
Validate the given String against one or more schemas
|
void |
validate(java.lang.String s,
java.lang.String[] schemas)
Validate the given String against one or more schemas
|
void |
wrapPayload(Message msg,
java.lang.String elementName,
java.lang.String namespace)
Wrap the XML payload with an outer element
|
org.w3c.dom.Document createDOMDocument()
void setPayloadFromDOM(Message m, org.w3c.dom.Document doc)
m
- the current message whose payload will be set with the DOM messagedoc
- the DOM document to be inserted as the payloadorg.w3c.dom.Document getPayloadAsDOM(Message m)
m
- the current message to be passedvoid convertToDOM(Message m)
m
- the current message to be transformedvoid convertFromFI(Message m)
m
- the current message to be transformedvoid convertToFI(Message m)
m
- the current message to be transformedvoid convertDOMToSoap11(Message m)
m
- the current message to be processedvoid convertDOMToSoap12(Message m)
m
- the current message to be processedvoid convertSoapToDOM(Message m)
m
- the current message containing a SOAP payload to convert to DOM/POXvoid convertXMLToJSONStream(Message m, javax.xml.namespace.QName staringElement, boolean retainNSPrefixes)
m
- the message to be convertedstaringElement
- an optional starting element to begin conversion (e.g. first element of the SOAP body)retainNSPrefixes
- retain the namespace prefixes into JSON names for elementsvoid convertXMLToJSONStream(Message m)
m
- the message to be convertedvoid retainElementAsPayload(Message m, java.lang.String exprn, java.lang.String[][] ns)
m
- the current messageexprn
- XPath expression selecting the node to retainns
- optional namespaces arrayvoid mergeXMLAttachmentsUnderElement(Message msg, java.lang.String rootElemName)
msg
- the message to transformrootElemName
- the new root element createdvoid mergeXMLAttachmentsUnderElement(Message msg, java.lang.String rootElemName, java.lang.String rootNS)
msg
- the message to transformrootElemName
- the new root element createdrootNS
- optional namespace for the root element, or nullvoid validate(Message m, java.lang.String[] schemas, java.lang.String exprn, java.lang.String[][] ns)
m
- the message holding the payload for validationschemas
- an array of XSD filename to validate against.
Note: the validator is sensitive to the order in which the Schemas are given. Otherwise you may end up with
an error such as "SAXParseException: cvc-elt.1: Cannot find the declaration of element"exprn
- an optional XPath expression selecting the node for validationns
- an optional array of namespace prefixes and namespaces used within the XPath expressionvoid validate(Message m, java.lang.String[] schemas)
m
- the message holding the payload for validationschemas
- an array of XSD filename to validate against
Note: the validator is sensitive to the order in which the Schemas are given. Otherwise you may end up with
an error such as "SAXParseException: cvc-elt.1: Cannot find the declaration of element"void validate(java.lang.String s, java.lang.String[] schemas)
s
- the XML stringschemas
- an array of XSD filename to validate against
Note: the validator is sensitive to the order in which the Schemas are given. Otherwise you may end up with
an error such as "SAXParseException: cvc-elt.1: Cannot find the declaration of element"void validate(org.w3c.dom.Node n, java.lang.String[] schemas)
n
- the DOM Node containing the XML to be validatedschemas
- an array of XSD filename to validate against
Note: the validator is sensitive to the order in which the Schemas are given. Otherwise you may end up with
an error such as "SAXParseException: cvc-elt.1: Cannot find the declaration of element"void transform(Message msg, java.lang.String xsltFilename, java.lang.String exprn, boolean domResult, java.util.Map parameters, java.lang.String[][] ns)
msg
- current messagexsltFilename
- the XSLT filenameexprn
- an optional XPath expression to select the source node for XSLT, and node to replace with the resultdomResult
- is the result desired as a DOM payload? (useful for further XML processing)parameters
- any XSLT parameters to be passed to the transformationns
- an optional array of namespace prefixes and namespace urls@Deprecated void transform(Message msg, java.lang.String xsltFilename, java.lang.String exprn, java.lang.String[][] ns, boolean domResult, java.util.Map parameters)
#transform(org.adroitlogic.ultraesb.api.Message, String, String, boolean, java.util.Map, String[]...)
Transform the message payload by XSLTmsg
- current messagexsltFilename
- the XSLT filenameexprn
- an optional XPath expression to select the source node for XSLT, and node to replace with the resultns
- an optional array of namespace prefixes and namespace urlsdomResult
- is the result desired as a DOM payload? (useful for further XML processing)parameters
- any XSLT parameters to be passed to the transformationvoid transform(Message msg, java.lang.String xsltFilename, java.lang.String exprn, java.lang.String[][] ns)
msg
- current messagexsltFilename
- the XSLT filenameexprn
- an optional XPath expression to select the source node for XSLT, and node to replace with the resultns
- an optional array of namespace prefixes and namespace urlsvoid transform(Message msg, java.lang.String xsltFilename)
msg
- current messagexsltFilename
- the XSLT filenameboolean filter(Message m, java.lang.String exprn, java.lang.String regex, java.lang.String[][] ns)
m
- the current messageexprn
- the XPath expression to evaluate against the message payloadregex
- an optional regular expression to evaluate the XPath results' String value againstns
- an optional array of namespace prefixes and namespace urls@Deprecated boolean filter(Message m, java.lang.String exprn, java.lang.String[][] ns, java.lang.String regex)
#filter(org.adroitlogic.ultraesb.api.Message, String, String, String[]...)
Evaluate the given XPath expression over the XML payload and compare the resulting String value with the
regular expression for a match. This method converts the current payload into a DOMMessagem
- the current messageexprn
- the XPath expression to evaluate against the message payloadns
- an optional array of namespace prefixes and namespace urlsregex
- an optional regular expression to evaluate the XPath results' String value againstboolean filter(Message m, java.lang.String exprn, java.lang.String[][] ns)
m
- the current messageexprn
- the XPath expression to evaluate against the message payloadns
- an optional array of namespace prefixes and namespace urlsvoid addAttributeToElements(Message msg, java.lang.String exprn, java.lang.String qName, java.lang.String nsUri, java.lang.String value, java.lang.String[][] ns)
msg
- the message where the transformation is performedexprn
- the xpath expression to select the elements where the attribute should be addedqName
- the qualified name for the new attribute. To specify a custom prefix use it here (e.g. "myns:myqname")nsUri
- the namespace URI for the new attribute, or null (to specify a custom prefix, see qName above)value
- the new value of the attributens
- an optional array of namespace prefixes and namespaces used within the XPath expression@Deprecated void addAttributeToElements(Message msg, java.lang.String exprn, java.lang.String[][] ns, java.lang.String qName, java.lang.String nsUri, java.lang.String value)
#addAttributeToElements(org.adroitlogic.ultraesb.api.Message, String, String, String, String, String[]...)
Add an attribute to one or more elements selected by an XPath expression
e.g. domSupport.addAttributeToElements(msg, "//order/symbol", null, "att1", null, "value1");msg
- the message where the transformation is performedexprn
- the xpath expression to select the elements where the attribute should be addedns
- an optional array of namespace prefixes and namespaces used within the XPath expressionqName
- the qualified name for the new attribute. To specify a custom prefix use it here (e.g. "myns:myqname")nsUri
- the namespace URI for the new attribute, or null (to specify a custom prefix, see qName above)value
- the new value of the attributejava.lang.String getAttribute(Message msg, java.lang.String exprn, java.lang.String[][] ns)
msg
- the message to read the attribute fromexprn
- the xpath expression to the element where the attribute should be addedns
- an optional array of namespace prefixes and namespaces used within the XPath expressionvoid deleteAttributes(Message msg, java.lang.String exprn, java.lang.String[][] ns)
msg
- the current message containing the payloadexprn
- the xpath expression to the attributes, which are to be deletedns
- an optional array of namespace prefixes and namespaces used within the XPath expressionvoid replaceAttributes(Message msg, java.lang.String expression, java.lang.String value, java.lang.String[][] ns)
msg
- the current message containing the payloadexpression
- the xpath expression to the attribute, which is to be replacedvalue
- the new value of the attributens
- an optional array of namespace prefixes and namespaces used within the XPath expression@Deprecated void replaceAttributes(Message msg, java.lang.String expression, java.lang.String[][] ns, java.lang.String value)
#replaceAttributes(org.adroitlogic.ultraesb.api.Message, String, String, String[]...)
Replaces the specified attribute/s valuemsg
- the current message containing the payloadexpression
- the xpath expression to the attribute, which is to be replacedns
- an optional array of namespace prefixes and namespaces used within the XPath expressionvalue
- the new value of the attributevoid addTextElementsAsChild(Message msg, java.lang.String expression, java.lang.String qualifiedTagName, java.lang.String namespace, java.lang.String elementContent, java.lang.String[][] ns)
msg
- the current message containing the payloadexpression
- the xpath expression to the node/s, which will be the parent for the new node/squalifiedTagName
- the qualified name of the new element to be addednamespace
- an optional String specifying the namespace url of the new elementelementContent
- the text content of the new elementns
- an optional array of namespace prefixes and namespaces used within the XPath expression@Deprecated void addTextElementsAsChild(Message msg, java.lang.String expression, java.lang.String[][] ns, java.lang.String qualifiedTagName, java.lang.String namespace, java.lang.String elementContent)
#addTextElementsAsChild(org.adroitlogic.ultraesb.api.Message, String, String, String, String, String[]...)
Inserts Text Element as a child to the specified elements pointed by an xpath expressionmsg
- the current message containing the payloadexpression
- the xpath expression to the node/s, which will be the parent for the new node/sns
- an optional array of namespace prefixes and namespaces used within the XPath expressionqualifiedTagName
- the qualified name of the new element to be addednamespace
- an optional String specifying the namespace url of the new elementelementContent
- the text content of the new elementvoid addElementsAsChild(Message msg, java.lang.String expression, java.lang.String qualifiedTagName, java.lang.String namespace, java.lang.String[][] ns)
msg
- the current message containing the payloadexpression
- the xpath expression to the node/s, which will be the parent for the new node/squalifiedTagName
- the qualified name of the new element to be addednamespace
- an optional String specifying the namespace url of the new elementns
- an optional array of namespace prefixes and namespaces used within the XPath expression@Deprecated void addElementsAsChild(Message msg, java.lang.String expression, java.lang.String[][] ns, java.lang.String qualifiedTagName, java.lang.String namespace)
#addElementsAsChild(org.adroitlogic.ultraesb.api.Message, String, String, String, String[]...)
Inserts Element as a child to the specified elements pointed by an xpath expressionmsg
- the current message containing the payloadexpression
- the xpath expression to the node/s, which will be the parent for the new node/sns
- an optional array of namespace prefixes and namespaces used within the XPath expressionqualifiedTagName
- the qualified name of the new element to be addednamespace
- an optional String specifying the namespace url of the new elementjava.lang.String getTextElement(Message msg, java.lang.String exprn, java.lang.String[][] ns)
msg
- the message to read the attribute fromexprn
- the xpath expression to the element where the text content should be readns
- an optional array of namespace prefixes and namespaces used within the XPath expressionvoid replaceTextElements(Message msg, java.lang.String expression, java.lang.String elementContent, java.lang.String[][] ns)
msg
- the current message containing the payloadexpression
- the xpath expression to the text elements to be replacedelementContent
- the text content of the new element/sns
- an optional array of namespace prefixes and namespaces used within the XPath expression@Deprecated void replaceTextElements(Message msg, java.lang.String expression, java.lang.String[][] ns, java.lang.String elementContent)
#replaceTextElements(org.adroitlogic.ultraesb.api.Message, String, String, String[]...)
Replace Text Elements pointed by an xpath expressionmsg
- the current message containing the payloadexpression
- the xpath expression to the text elements to be replacedns
- an optional array of namespace prefixes and namespaces used within the XPath expressionelementContent
- the text content of the new element/svoid deleteElements(Message msg, java.lang.String expression, java.lang.String[][] ns)
msg
- the current message containing the payloadexpression
- the xpath expression to the text elements to be replacedns
- an optional array of namespace prefixes and namespaces used within the XPath expressionvoid insertTextElementsBefore(Message msg, java.lang.String expression, java.lang.String qualifiedTagName, java.lang.String namespace, java.lang.String elementContent, java.lang.String[][] ns)
msg
- the current message containing the payloadexpression
- the xpath expression to the node, where the new element should be added beforequalifiedTagName
- the qualified tag name of the new element to be addednamespace
- namespace uri for the new tagelementContent
- the content of the new elementns
- an optional array of namespace prefixes and namespaces used within the XPath expression@Deprecated void insertTextElementsBefore(Message msg, java.lang.String expression, java.lang.String[][] ns, java.lang.String qualifiedTagName, java.lang.String namespace, java.lang.String elementContent)
#insertTextElementsBefore(org.adroitlogic.ultraesb.api.Message, String, String, String, String, String[]...)
Inserts an element/elements before the specified element pointed by the XPATH, to the current message. If the
XPath expression points to multiple elements, new element will be added before all the elements pointed by the
XPath. The content of the new element should be String. No complex types are allowed.msg
- the current message containing the payloadexpression
- the xpath expression to the node, where the new element should be added beforens
- an optional array of namespace prefixes and namespaces used within the XPath expressionqualifiedTagName
- the qualified tag name of the new element to be addednamespace
- namespace uri for the new tagelementContent
- the content of the new elementvoid insertTextElementsAfter(Message msg, java.lang.String expression, java.lang.String qualifiedTagName, java.lang.String namespace, java.lang.String elementContent, java.lang.String[][] ns)
msg
- the current message containing the payloadexpression
- the xpath expression to the node, where the new element should be added afterqualifiedTagName
- the qualified tag name of the new element to be addednamespace
- namespace uri for the new tagelementContent
- the content of the new elementns
- an optional array of namespace prefixes and namespaces used within the XPath expression@Deprecated void insertTextElementsAfter(Message msg, java.lang.String expression, java.lang.String[][] ns, java.lang.String qualifiedTagName, java.lang.String namespace, java.lang.String elementContent)
#insertTextElementsAfter(org.adroitlogic.ultraesb.api.Message, String, String, String, String, String[]...)
Inserts an element/elements after the specified element pointed by the XPATH, to the current message. If the
XPath expression points to multiple elements, new element will be added after all the elements pointed by the
XPath.The content of the new element should be String. No complex types are allowed.msg
- the current message containing the payloadexpression
- the xpath expression to the node, where the new element should be added afterns
- an optional array of namespace prefixes and namespaces used within the XPath expressionqualifiedTagName
- the qualified tag name of the new element to be addednamespace
- namespace uri for the new tagelementContent
- the content of the new elementboolean remove(Message m, java.lang.String exprn, java.lang.String[][] ns)
m
- the current messageexprn
- the XPath expression to evaluate against the message payloadns
- an optional array of namespace prefixes and namespace urlsjava.lang.String extractAsStringUsingXPath(Message m, java.lang.String exprn, java.lang.String[][] ns)
m
- the current messageexprn
- the XPath expression to evaluate against the message payloadns
- an optional array of namespace prefixes and namespace urlsjava.lang.String extractAsStringUsingXPath(java.lang.String s, java.lang.String exprn, java.lang.String[][] ns)
#extractAsStringUsingXPath(org.w3c.dom.Node, String, String[]...)
instead of this method as that will be
much more performance friendlys
- a String containing an XML payloadexprn
- the XPath expression to evaluate against the XML payloadns
- an optional array of namespace prefixes and namespace urlsjava.lang.String extractAsStringUsingXPath(org.w3c.dom.Node n, java.lang.String exprn, java.lang.String[][] ns)
n
- DOM node to be subjected to the evaluationexprn
- the XPath expression to evaluate against the DOM nodens
- an optional array of namespace prefixes and namespace urlsorg.w3c.dom.NodeList extractAsNodeListUsingXPath(Message m, java.lang.String exprn, java.lang.String[][] ns)
m
- the current messageexprn
- the XPath expression to evaluate against the message payloadns
- an optional array of namespace prefixes and namespace urlsorg.w3c.dom.NodeList extractAsNodeListUsingXPath(org.w3c.dom.Node n, java.lang.String exprn, java.lang.String[][] ns)
void splitAndProcess(Message msg, java.lang.String exprn, java.lang.String sequenceName, boolean ignoreErrors, java.lang.String[][] ns) throws java.lang.Exception
msg
- the current message to be split and processedexprn
- the XPath expression to split the message atsequenceName
- the sequence to invoke on each resulting messageignoreErrors
- ignore any errors encountered during sequence executionns
- name spaces usedjava.lang.Exception
- if the invoked sequence throws an exception@Deprecated void splitAndProcess(Message msg, java.lang.String exprn, java.lang.String[][] ns, java.lang.String sequenceName, boolean ignoreErrors) throws java.lang.Exception
#splitAndProcess(org.adroitlogic.ultraesb.api.Message, String, String, boolean, String[]...)
Split current message into multiple messages using the given XPath expression, and hand over each such
message to the given sequencemsg
- the current message to be split and processedexprn
- the XPath expression to split the message atns
- name spaces usedsequenceName
- the sequence to invoke on each resulting messageignoreErrors
- ignore any errors encountered during sequence executionjava.lang.Exception
- if the invoked sequence throws an exceptionjava.lang.Object convertXMLToJAXBObject(Message msg, java.lang.Class clazz)
msg
- the current message to read the payload fromclazz
- the JAXB class to convert the payload intovoid serializeJAXBObjectAsXMLStream(Message msg, java.lang.Object jaxb, java.lang.String rootElement, java.lang.String uri)
msg
- the current message to write the Object into as a XML streamjaxb
- the JAXB Object to serializerootElement
- root element local name for serializationuri
- namespace uri for the root elementvoid serializeJAXBObjectAsXMLStream(Message msg, java.lang.Object jaxb)
msg
- the current message to write the Object into as a SOAP 1.1 streamjaxb
- the JAXB Object to serializejava.lang.Object convertXMLToJAXBObject(Message msg, java.lang.String contextPath, java.lang.Class clazz)
msg
- the current message to read the payload fromcontextPath
- a list of colon separated java package names that contain schema-derived classes
and/or fully qualified JAXB-annotated classesclazz
- the JAXB class to convert the payload intovoid serializeJAXBObjectAsXMLStream(Message msg, java.lang.String contextPath, java.lang.Object jaxb)
msg
- the current message to write the Object into as a SOAP 1.1 streamcontextPath
- a list of colon separated java package names that contain schema-derived classes
and/or fully qualified JAXB-annotated classesjaxb
- the JAXB Object to serializevoid serializeJAXBObjectAsXMLStream(Message msg, java.lang.String contextPath, java.lang.Object jaxb, java.lang.String rootElement, java.lang.String uri)
msg
- the current message to write the Object into as a XML streamcontextPath
- a list of colon separated java package names that contain schema-derived classes
and/or fully qualified JAXB-annotated classesjaxb
- the JAXB Object to serializerootElement
- root element local name for serializationuri
- namespace uri for the root elementvoid splitWithBean(java.lang.String beanName, Message msg)
beanName
- name of the Spring bean implementing the split-aggregate supportmsg
- the message to be split based on the Split-Aggregation Spring beanvoid aggregateWithBean(java.lang.String beanName, Message msg)
beanName
- name of the Spring bean implementing the split-aggregate supportmsg
- the message to be aggregated based on the Split-Aggregation Spring beanvoid wrapPayload(Message msg, java.lang.String elementName, java.lang.String namespace)
msg
- the message containing the payload to be wrappedelementName
- name of the wrapper elementnamespace
- optional namespace or null