|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.module.saaj.SaajUtils
public class SaajUtils
Support methods for working with SAAJ
| Constructor Summary | |
|---|---|
SaajUtils()
|
|
| Method Summary | |
|---|---|
static javax.xml.soap.SOAPMessage |
buildSOAPMessage(InputStream input,
Map<String,String> headers,
javax.xml.soap.MessageFactory messageFactory)
Build a SOAPMessage from an InputStream. |
static javax.xml.soap.SOAPMessage |
buildSOAPMessage(InputStream input,
javax.xml.soap.MessageFactory messageFactory)
Build a SOAPMessage from an InputStream. |
static boolean |
containsFault(javax.xml.soap.SOAPMessage soapMessage)
Determine if a SOAP fault is present in a SOAPMessage's body |
static Node |
getBodyContent(javax.xml.soap.SOAPBody body)
Extract the first Node contaning the payload of a SOAPBody/ |
static byte[] |
getSOAPMessageAsBytes(javax.xml.soap.SOAPMessage message)
Serializes a SOAPMessage as XML encoded as a byte array |
static String |
getSOAPMessageAsString(javax.xml.soap.SOAPMessage message)
Serialize a SOAPMessage as a String |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SaajUtils()
| Method Detail |
|---|
public static javax.xml.soap.SOAPMessage buildSOAPMessage(InputStream input,
javax.xml.soap.MessageFactory messageFactory)
SOAPMessage from an InputStream.
input - the stream of XML to create the SOAPMessage from.messageFactory - a reference to the MessageFactory to use
SOAPMessage constructed from the input
public static javax.xml.soap.SOAPMessage buildSOAPMessage(InputStream input,
Map<String,String> headers,
javax.xml.soap.MessageFactory messageFactory)
SOAPMessage from an InputStream.
input - the InputStream to build the message fromheaders - A Map used to populate the SOAP headers of the SOAPMessagemessageFactory - A reference to the MessageFactory to be used
SOAPMessagepublic static byte[] getSOAPMessageAsBytes(javax.xml.soap.SOAPMessage message)
SOAPMessage as XML encoded as a byte array
message - the SOAPMessage to encode as bytes
SOAPMessagepublic static String getSOAPMessageAsString(javax.xml.soap.SOAPMessage message)
SOAPMessage as a String
message - the SOAPMessage
SOAPMessagepublic static Node getBodyContent(javax.xml.soap.SOAPBody body)
Node contaning the payload of a SOAPBody/
body - the SOAPBody to extract the payload from
Node of the payloadpublic static boolean containsFault(javax.xml.soap.SOAPMessage soapMessage)
SOAPMessage's body
soapMessage - the SOAPMessage to evaluate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||