|
Spring Web Services Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.ws.mime.AbstractMimeMessage
org.springframework.ws.soap.AbstractSoapMessage
org.springframework.ws.soap.saaj.SaajSoapMessage
public class SaajSoapMessage
SAAJ-specific implementation of the SoapMessage interface. Created via the SaajSoapMessageFactory,
wraps a SOAPMessage.
SOAPMessage| Constructor Summary | |
|---|---|
SaajSoapMessage(SOAPMessage soapMessage)
Create a new SaajSoapMessage based on the given SAAJ SOAPMessage. |
|
SaajSoapMessage(SOAPMessage soapMessage,
boolean langAttributeOnSoap11FaultString)
Create a new SaajSoapMessage based on the given SAAJ SOAPMessage. |
|
SaajSoapMessage(SOAPMessage soapMessage,
boolean langAttributeOnSoap11FaultString,
MessageFactory messageFactory)
Create a new SaajSoapMessage based on the given SAAJ SOAPMessage. |
|
SaajSoapMessage(SOAPMessage soapMessage,
MessageFactory messageFactory)
Create a new SaajSoapMessage based on the given SAAJ SOAPMessage. |
|
| Method Summary | |
|---|---|
Attachment |
addAttachment(String contentId,
DataHandler dataHandler)
Add an attachment to the message, taking the content from a DataHandler. |
boolean |
convertToXopPackage()
Turns this message into a XOP package. |
Attachment |
getAttachment(String contentId)
Returns the Attachment with the specified content Id. |
Iterator<Attachment> |
getAttachments()
Returns an Iterator over all Attachment objects that are part of this message. |
Document |
getDocument()
Returns this message as a Document. |
SoapEnvelope |
getEnvelope()
Returns the SoapEnvelope associated with this SoapMessage. |
protected org.springframework.ws.soap.saaj.SaajImplementation |
getImplementation()
|
SOAPMessage |
getSaajMessage()
Return the SAAJ SOAPMessage that this SaajSoapMessage is based on. |
String |
getSoapAction()
Get the SOAP Action for this message, or null if not present. |
boolean |
isXopPackage()
Indicates whether this message is a XOP package. |
void |
setDocument(Document document)
Sets the contents of the message to the given Document. |
void |
setSaajMessage(SOAPMessage soapMessage)
Sets the SAAJ SOAPMessage that this SaajSoapMessage is based on. |
void |
setSoapAction(String soapAction)
Sets the SOAP Action for this message. |
String |
toString()
|
void |
writeTo(OutputStream outputStream)
Writes the entire message to the given output stream. |
| Methods inherited from class org.springframework.ws.soap.AbstractSoapMessage |
|---|
getFaultReason, getPayloadResult, getPayloadSource, getSoapBody, getSoapHeader, getVersion, hasFault |
| Methods inherited from class org.springframework.ws.mime.AbstractMimeMessage |
|---|
addAttachment, addAttachment |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.springframework.ws.mime.MimeMessage |
|---|
addAttachment, addAttachment |
| Constructor Detail |
|---|
public SaajSoapMessage(SOAPMessage soapMessage)
SaajSoapMessage based on the given SAAJ SOAPMessage.
soapMessage - the SAAJ SOAPMessage
public SaajSoapMessage(SOAPMessage soapMessage,
MessageFactory messageFactory)
SaajSoapMessage based on the given SAAJ SOAPMessage.
soapMessage - the SAAJ SOAPMessagemessageFactory - the SAAJ message factory
public SaajSoapMessage(SOAPMessage soapMessage,
boolean langAttributeOnSoap11FaultString)
SaajSoapMessage based on the given SAAJ SOAPMessage.
soapMessage - the SAAJ SOAPMessagelangAttributeOnSoap11FaultString - whether a xml:lang attribute is allowed on SOAP 1.1 <faultstring> elements
public SaajSoapMessage(SOAPMessage soapMessage,
boolean langAttributeOnSoap11FaultString,
MessageFactory messageFactory)
SaajSoapMessage based on the given SAAJ SOAPMessage.
soapMessage - the SAAJ SOAPMessagelangAttributeOnSoap11FaultString - whether a xml:lang attribute is allowed on SOAP 1.1 <faultstring> elementsmessageFactory - the message factory| Method Detail |
|---|
public SOAPMessage getSaajMessage()
SOAPMessage that this SaajSoapMessage is based on.
public void setSaajMessage(SOAPMessage soapMessage)
SOAPMessage that this SaajSoapMessage is based on.
public SoapEnvelope getEnvelope()
SoapMessageSoapEnvelope associated with this SoapMessage.
public String getSoapAction()
SoapMessagenull if not present.
public void setSoapAction(String soapAction)
SoapMessage
soapAction - the SOAP Action.public Document getDocument()
SoapMessageDocument.
Depending on the underlying implementation, this Document may be 'live' or not.
public void setDocument(Document document)
SoapMessageDocument.
document - the soap message as a DOM document
public void writeTo(OutputStream outputStream)
throws IOException
WebServiceMessageIf the given stream is an instance of TransportOutputStream, the corresponding headers will be written as well.
outputStream - the stream to write to
IOException - if an I/O exception occurspublic boolean isXopPackage()
MimeMessage
true when the constraints specified in Identifying
XOP Documents are met.public boolean convertToXopPackage()
MimeMessage
true when the message is a XOP package
public Iterator<Attachment> getAttachments()
throws AttachmentException
MimeMessageIterator over all Attachment objects that are part of this message.
AttachmentException - in case of errorsAttachmentpublic Attachment getAttachment(String contentId)
MimeMessageAttachment with the specified content Id.
null if it cannot be found
public Attachment addAttachment(String contentId,
DataHandler dataHandler)
MimeMessageDataHandler.
dataHandler - the data handler to take the content from
protected final org.springframework.ws.soap.saaj.SaajImplementation getImplementation()
public String toString()
toString in class Object
|
Spring Web Services Framework | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||