public class SoapMessage extends DefaultMessage
| Constructor and Description |
|---|
SoapMessage()
Empty constructor initializing with empty message payload.
|
SoapMessage(Message message)
Constructs copy of given message.
|
SoapMessage(Object payload)
Default constructor using just message payload.
|
SoapMessage(Object payload,
Map<String,Object> headers)
Default constructor using payload and headers.
|
| Modifier and Type | Method and Description |
|---|---|
SoapMessage |
addAttachment(SoapAttachment attachment)
Adds new attachment to this message.
|
SoapMessage |
addHeaderData(String headerData) |
List<SoapAttachment> |
getAttachments()
Gets the list of message attachments.
|
String |
getSoapAction()
Gets the soap action for this message.
|
SoapMessage |
header(String headerName,
Object headerValue)
Sets new header name value pair.
|
boolean |
isMtomEnabled()
Gets mtom attachments enabled
|
SoapMessage |
mtomEnabled(boolean mtomEnabled)
Enable or disable mtom attachments
|
SoapMessage |
setHeader(String headerName,
Object headerValue) |
SoapMessage |
soapAction(String soapAction)
Set soap action for this message.
|
String |
toString() |
copyHeaders, getHeader, getHeaderData, getId, getPayload, getPayload, getTimestamp, removeHeader, setPayloadpublic SoapMessage()
public SoapMessage(Message message)
message - public SoapMessage(Object payload)
payload - public SoapMessage header(String headerName, Object headerValue)
headerName - headerValue - public SoapMessage setHeader(String headerName, Object headerValue)
setHeader in interface MessagesetHeader in class DefaultMessagepublic SoapMessage addHeaderData(String headerData)
addHeaderData in interface MessageaddHeaderData in class DefaultMessagepublic SoapMessage soapAction(String soapAction)
soapAction - public SoapMessage mtomEnabled(boolean mtomEnabled)
mtomEnabled - public SoapMessage addAttachment(SoapAttachment attachment)
attachment - public String getSoapAction()
public List<SoapAttachment> getAttachments()
public boolean isMtomEnabled()
public String toString()
toString in class DefaultMessageCopyright © 2008–2015 ConSol* Consulting&Solutions GmbH. All rights reserved.