Package org.apache.axis2.saaj.util
Class SAAJUtil
java.lang.Object
org.apache.axis2.saaj.util.SAAJUtil
Utility class for the Axis2-WSS4J Module
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancompareContentTypes(String contentType1, String contentType2) static jakarta.xml.soap.MimeHeaderscopyMimeHeaders(jakarta.xml.soap.MimeHeaders headers) Create a copy of an existingMimeHeadersobject.static DocumentgetDocumentFromSOAPEnvelope(org.apache.axiom.soap.SOAPEnvelope env) Create a DOM Document using the org.apache.axiom.soap.SOAPEnvelopestatic org.apache.axiom.soap.SOAPEnvelopestatic StringnormalizeContentType(String contentType) Normalize a content type specification.static ElementtoDOM(org.apache.axiom.om.OMElement element) Convert a given OMElement to a DOM Elementstatic ElementtoDOOMSOAPEnvelope(org.apache.axiom.soap.SOAPEnvelope env) Create a DOM Document using the org.apache.axiom.soap.SOAPEnvelopestatic org.apache.axiom.soap.SOAPEnvelopetoOMSOAPEnvelope(jakarta.xml.soap.SOAPMessage message) Convert a SAAJ message to an Axiom SOAP envelope object and process xop:Include elements.static org.apache.axiom.soap.SOAPEnvelopetoOMSOAPEnvelope(Element elem)
-
Constructor Details
-
SAAJUtil
public SAAJUtil()
-
-
Method Details
-
getDocumentFromSOAPEnvelope
Create a DOM Document using the org.apache.axiom.soap.SOAPEnvelope- Parameters:
env- An org.apache.axiom.soap.SOAPEnvelope instance- Returns:
- the DOM Document of the given SOAP Envelope
-
toDOOMSOAPEnvelope
Create a DOM Document using the org.apache.axiom.soap.SOAPEnvelope- Parameters:
env- An org.apache.axiom.soap.SOAPEnvelope instance- Returns:
- the org.apache.axis2.soap.impl.dom.SOAPEnvelopeImpl of the given SOAP Envelope
-
getSOAPEnvelopeFromDOOMDocument
-
toOMSOAPEnvelope
-
toOMSOAPEnvelope
public static org.apache.axiom.soap.SOAPEnvelope toOMSOAPEnvelope(jakarta.xml.soap.SOAPMessage message) throws jakarta.xml.soap.SOAPException Convert a SAAJ message to an Axiom SOAP envelope object and process xop:Include elements.- Parameters:
message- the SAAJ message- Returns:
- the OM SOAP envelope
- Throws:
jakarta.xml.soap.SOAPException
-
toDOM
Convert a given OMElement to a DOM Element- Parameters:
element-- Returns:
- DOM Element
- Throws:
Exception
-
copyMimeHeaders
public static jakarta.xml.soap.MimeHeaders copyMimeHeaders(jakarta.xml.soap.MimeHeaders headers) Create a copy of an existingMimeHeadersobject.- Parameters:
headers- the object to copy- Returns:
- a copy of the
MimeHeadersobject
-
normalizeContentType
Normalize a content type specification. This removes all parameters from the content type and converts it to lower case.- Parameters:
contentType- the content type to normalize- Returns:
- the normalized content type
-
compareContentTypes
-