public class SAAJUtil extends Object
Constructor and Description |
---|
SAAJUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
compareContentTypes(String contentType1,
String contentType2) |
static javax.xml.soap.MimeHeaders |
copyMimeHeaders(javax.xml.soap.MimeHeaders headers)
Create a copy of an existing
MimeHeaders object. |
static Document |
getDocumentFromSOAPEnvelope(org.apache.axiom.soap.SOAPEnvelope env)
Create a DOM Document using the org.apache.axiom.soap.SOAPEnvelope
|
static org.apache.axiom.soap.SOAPEnvelope |
getSOAPEnvelopeFromDOOMDocument(Document doc) |
static String |
normalizeContentType(String contentType)
Normalize a content type specification.
|
static Element |
toDOM(org.apache.axiom.om.OMElement element)
Convert a given OMElement to a DOM Element
|
static org.apache.axiom.soap.impl.dom.SOAPEnvelopeImpl |
toDOOMSOAPEnvelope(org.apache.axiom.soap.SOAPEnvelope env)
Create a DOM Document using the org.apache.axiom.soap.SOAPEnvelope
|
static org.apache.axiom.soap.SOAPEnvelope |
toOMSOAPEnvelope(Element elem) |
static org.apache.axiom.soap.SOAPEnvelope |
toOMSOAPEnvelope(javax.xml.soap.SOAPMessage message)
Convert a SAAJ message to an Axiom SOAP envelope object and process xop:Include
elements.
|
public static Document getDocumentFromSOAPEnvelope(org.apache.axiom.soap.SOAPEnvelope env)
env
- An org.apache.axiom.soap.SOAPEnvelope instancepublic static org.apache.axiom.soap.impl.dom.SOAPEnvelopeImpl toDOOMSOAPEnvelope(org.apache.axiom.soap.SOAPEnvelope env)
env
- An org.apache.axiom.soap.SOAPEnvelope instancepublic static org.apache.axiom.soap.SOAPEnvelope getSOAPEnvelopeFromDOOMDocument(Document doc)
public static org.apache.axiom.soap.SOAPEnvelope toOMSOAPEnvelope(Element elem)
public static org.apache.axiom.soap.SOAPEnvelope toOMSOAPEnvelope(javax.xml.soap.SOAPMessage message) throws javax.xml.soap.SOAPException
message
- the SAAJ messagejavax.xml.soap.SOAPException
public static Element toDOM(org.apache.axiom.om.OMElement element) throws Exception
element
- Exception
public static javax.xml.soap.MimeHeaders copyMimeHeaders(javax.xml.soap.MimeHeaders headers)
MimeHeaders
object.headers
- the object to copyMimeHeaders
objectpublic static String normalizeContentType(String contentType)
contentType
- the content type to normalizeCopyright © 2004–2016 The Apache Software Foundation. All rights reserved.