|
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.axiom.AxiomSoapMessage
public class AxiomSoapMessage
AXIOM-specific implementation of the SoapMessage
interface. Created via the AxiomSoapMessageFactory
,
wraps a SOAPMessage
.
SOAPMessage
Constructor Summary | |
---|---|
AxiomSoapMessage(SOAPFactory soapFactory)
Create a new, empty AxiomSoapMessage . |
|
AxiomSoapMessage(SOAPFactory soapFactory,
boolean payloadCaching,
boolean langAttributeOnSoap11FaultString)
Create a new, empty AxiomSoapMessage . |
|
AxiomSoapMessage(SOAPMessage soapMessage,
Attachments attachments,
String soapAction,
boolean payloadCaching,
boolean langAttributeOnSoap11FaultString)
Create a new AxiomSoapMessage based on the given AXIOM SOAPMessage and attachments. |
|
AxiomSoapMessage(SOAPMessage soapMessage,
String soapAction,
boolean payloadCaching,
boolean langAttributeOnSoap11FaultString)
Create a new AxiomSoapMessage based on the given AXIOM 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. |
SOAPMessage |
getAxiomMessage()
Return the AXIOM SOAPMessage that this AxiomSoapMessage is based on. |
SoapEnvelope |
getEnvelope()
Returns the SoapEnvelope associated with this SoapMessage . |
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 |
setAxiomMessage(SOAPMessage axiomMessage)
Sets the AXIOM SOAPMessage that this AxiomSoapMessage is based on. |
void |
setOutputFormat(OMOutputFormat outputFormat)
Sets the OMOutputFormat to be used when writing the message. |
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 AxiomSoapMessage(SOAPFactory soapFactory)
AxiomSoapMessage
.
soapFactory
- the AXIOM SOAPFactorypublic AxiomSoapMessage(SOAPFactory soapFactory, boolean payloadCaching, boolean langAttributeOnSoap11FaultString)
AxiomSoapMessage
.
soapFactory
- the AXIOM SOAPFactorypublic AxiomSoapMessage(SOAPMessage soapMessage, String soapAction, boolean payloadCaching, boolean langAttributeOnSoap11FaultString)
AxiomSoapMessage
based on the given AXIOM SOAPMessage
.
soapMessage
- the AXIOM SOAPMessagesoapAction
- the value of the SOAP Action headerpayloadCaching
- whether the contents of the SOAP body should be cached or notpublic AxiomSoapMessage(SOAPMessage soapMessage, Attachments attachments, String soapAction, boolean payloadCaching, boolean langAttributeOnSoap11FaultString)
AxiomSoapMessage
based on the given AXIOM SOAPMessage
and attachments.
soapMessage
- the AXIOM SOAPMessageattachments
- the attachmentssoapAction
- the value of the SOAP Action headerpayloadCaching
- whether the contents of the SOAP body should be cached or notMethod Detail |
---|
public final SOAPMessage getAxiomMessage()
SOAPMessage
that this AxiomSoapMessage
is based on.
public final void setAxiomMessage(SOAPMessage axiomMessage)
SOAPMessage
that this AxiomSoapMessage
is based on.
Calling this method also clears the SOAP Action property.
public void setOutputFormat(OMOutputFormat outputFormat)
OMOutputFormat
to be used when writing the message.
writeTo(java.io.OutputStream)
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 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 Attachment getAttachment(String contentId)
MimeMessage
Attachment
with the specified content Id.
null
if it cannot be foundpublic Iterator getAttachments()
MimeMessage
Iterator
over all Attachment
objects that are part of this message.
Attachment
public Attachment addAttachment(String contentId, DataHandler dataHandler)
MimeMessage
DataHandler
.
dataHandler
- the data handler to take the content from
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 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 |