|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 . |
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 |
getAttachments()
Returns an Iterator over all Attachment objects that are part of this message. |
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 |
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 SOAPMessagepublic 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>
elementsMethod 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()
SoapMessage
SoapEnvelope
associated with this SoapMessage
.
public String getSoapAction()
SoapMessage
null
if not present.
public void setSoapAction(String soapAction)
SoapMessage
soapAction
- the SOAP Action.public void writeTo(OutputStream outputStream) throws IOException
WebServiceMessage
If 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 packagepublic Iterator getAttachments() throws AttachmentException
MimeMessage
Iterator
over all Attachment
objects that are part of this message.
AttachmentException
- in case of errorsAttachment
public Attachment getAttachment(String contentId)
MimeMessage
Attachment
with the specified content Id.
null
if it cannot be foundpublic Attachment addAttachment(String contentId, DataHandler dataHandler)
MimeMessage
DataHandler
.
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 |