public final class UtilsAxis
extends java.lang.Object
Utilities class that contains auxiliary method related with axis engine.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
findAttributeValue(org.apache.axiom.om.OMElement element,
java.lang.String attributeName)
Method that gets the value of an attribute from a given XML element.
|
static org.apache.axiom.om.OMElement |
findElementByTagName(org.apache.axiom.om.OMElement element,
java.lang.String tagName)
Method that finds a given element in the OMElement if it exists.
|
static org.apache.axiom.om.OMElement |
findElementByTagNameAndAttribute(org.apache.axiom.om.OMElement element,
java.lang.String tagName,
java.lang.String attrName,
java.lang.String attrValue)
Method that finds a given element in the OMElement if it exists.
|
static org.apache.axiom.om.OMElement |
findElementByTagNameAndId(org.apache.axiom.om.OMElement element,
java.lang.String tagName,
java.lang.String id)
Method that finds a given element in the OMElement if it exists.
|
static org.apache.axiom.om.OMElement |
fromSOAPHeaderToOMElement(org.apache.axis2.saaj.SOAPHeaderElementImpl headers)
Method that transforms a SOAPHeader into a OMElement.
|
static java.lang.String |
generateNumbersUniqueId()
Synchronized method that generates a unique identifier builded in characters
and a ending number.
|
static boolean |
isHandlerInPhase(org.apache.axis2.engine.Phase phase,
org.apache.axis2.engine.Handler handler)
Method that checks if the handlers is already included in the phase.
|
static org.apache.axiom.om.OMElement |
parseElements(org.apache.axis2.saaj.SOAPElementImpl<?> sh,
org.apache.axiom.om.OMFactory fac)
Method that transform a given set of child elements into a OMElement.
|
static void |
updateSoapBody(org.apache.axiom.soap.SOAPBody body,
javax.xml.soap.SOAPBody soapBody)
Method that update the current SOAP body with the new generated body.
|
public static org.apache.axiom.om.OMElement fromSOAPHeaderToOMElement(org.apache.axis2.saaj.SOAPHeaderElementImpl headers)
headers - SOAP header to transform.public static org.apache.axiom.om.OMElement parseElements(org.apache.axis2.saaj.SOAPElementImpl<?> sh,
org.apache.axiom.om.OMFactory fac)
sh - Child to transform.fac - Object Model factory.public static java.lang.String generateNumbersUniqueId()
public static org.apache.axiom.om.OMElement findElementByTagName(org.apache.axiom.om.OMElement element,
java.lang.String tagName)
element - XML element to analyze.tagName - Name of the tag to find.public static org.apache.axiom.om.OMElement findElementByTagNameAndId(org.apache.axiom.om.OMElement element,
java.lang.String tagName,
java.lang.String id)
element - XML element to analyze.tagName - Name of the tag to find.id - Identifier of the element to find.public static org.apache.axiom.om.OMElement findElementByTagNameAndAttribute(org.apache.axiom.om.OMElement element,
java.lang.String tagName,
java.lang.String attrName,
java.lang.String attrValue)
element - XML element to analyze.tagName - Name of the tag to find.attrName - Name of the attribute to find.attrValue - value of the attribute to find.public static java.lang.String findAttributeValue(org.apache.axiom.om.OMElement element,
java.lang.String attributeName)
element - XML element where to do the search.attributeName - Name of the attribute to find.public static void updateSoapBody(org.apache.axiom.soap.SOAPBody body,
javax.xml.soap.SOAPBody soapBody)
body - Current SOAP body to update.soapBody - new SOAP body.public static boolean isHandlerInPhase(org.apache.axis2.engine.Phase phase,
org.apache.axis2.engine.Handler handler)
phase - axis2 phase.handler - handler to check.