public class Axis2Util extends Object
Constructor and Description |
---|
Axis2Util() |
Modifier and Type | Method and Description |
---|---|
static Document |
getDocumentFromSOAPEnvelope(org.apache.axiom.soap.SOAPEnvelope env,
boolean useDoom)
Creates a DOM Document using the SOAP Envelope.
|
static String |
getKey(String originalKey,
boolean inHandler,
int repetition)
Provides the appropriate key to pickup config params from the message context.
|
static org.apache.axiom.soap.SOAPEnvelope |
getSOAPEnvelopeFromDOMDocument(Document doc,
boolean useDoom)
Builds a SOAPEnvelope from DOM Document.
|
static boolean |
isUseDOOM() |
static org.apache.axiom.om.OMElement |
toDOOM(org.apache.axiom.om.OMFactory factory,
org.apache.axiom.om.OMElement element)
This will build a DOOM Element that is of the same
Document |
static void |
useDOOM(boolean isDOOMRequired) |
public static boolean isUseDOOM()
public static void useDOOM(boolean isDOOMRequired)
public static Document getDocumentFromSOAPEnvelope(org.apache.axiom.soap.SOAPEnvelope env, boolean useDoom) throws org.apache.ws.security.WSSecurityException
env
- An org.apache.axiom.soap.SOAPEnvelope instanceorg.apache.ws.security.WSSecurityException
public static org.apache.axiom.soap.SOAPEnvelope getSOAPEnvelopeFromDOMDocument(Document doc, boolean useDoom) throws org.apache.ws.security.WSSecurityException
doc
- - The dom document that contains a SOAP messageuseDoom
- org.apache.ws.security.WSSecurityException
public static String getKey(String originalKey, boolean inHandler, int repetition)
originalKey
- The default keyinHandler
- Whether the handler is the inflow handler or notrepetition
- The current repetition numberpublic static org.apache.axiom.om.OMElement toDOOM(org.apache.axiom.om.OMFactory factory, org.apache.axiom.om.OMElement element)
Document
factory
- element
- Copyright © Apache Software Foundation. All Rights Reserved.