public interface Message
| Modifier and Type | Method and Description |
|---|---|
void |
addAttachmentHeader(String headerName,
String headerValue,
org.apache.camel.Attachment attachment)
Deprecated.
|
void |
addAttachmentHeader(String headerName,
String headerValue,
AttachmentWrapper attachment)
Add this value to the existing values for this headerName of the
attachment.
|
void |
addAttachmentObject(String id,
org.apache.camel.Attachment content)
Deprecated.
|
void |
addAttachmentObject(String id,
AttachmentWrapper content)
Adds an attachment to the message using the id
|
void |
clearSoapHeaders()
removes all SOAP headers of the current message
|
String |
getAttachmentHeader(String headerName,
org.apache.camel.Attachment attachment)
Deprecated.
|
String |
getAttachmentHeader(String headerName,
AttachmentWrapper attachment)
Get all the values for this header name for the attachment.
|
Map<String,org.apache.camel.Attachment> |
getAttachmentObjects()
Deprecated.
|
Map<String,DataHandler> |
getAttachments() |
long |
getAttachmentsSize()
Returns the combined size of all message attachments
|
Map<String,AttachmentWrapper> |
getAttachmentWrapperObjects()
Returns all attachments of the message
|
Object |
getBody() |
<T> T |
getBody(Class<T> type) |
long |
getBodySize()
Returns the size of the message body.
|
<T> T |
getHeader(String headerName,
Class<T> headerType)
Return value of a message header
|
Map<String,Object> |
getHeaders() |
Map<String,Object> |
getProperties() |
Object |
getProperty(String name)
Returns the value of a property
|
List<SoapHeader> |
getSoapHeaders()
returns the SOAP headers of the current message.
|
void |
removeAttachmentHeader(String headerName,
org.apache.camel.Attachment attachment)
Deprecated.
|
void |
removeAttachmentHeader(String headerName,
AttachmentWrapper attachment)
Remove all headers with this name.
|
void |
setAttachmentHeader(String headerName,
String headerValue,
org.apache.camel.Attachment attachment)
Deprecated.
|
void |
setAttachmentHeader(String headerName,
String headerValue,
AttachmentWrapper attachment)
Set the value for this headerName to the attachment.
|
void |
setAttachmentObjects(Map<String,org.apache.camel.Attachment> attachmentObjects)
Deprecated.
|
void |
setAttachments(Map<String,DataHandler> attachments) |
void |
setAttachmentWrapperObjects(Map<String,AttachmentWrapper> attachmentObjects)
Set all the attachments associated with this message
|
void |
setBody(Object exchangeBody) |
void |
setHeader(String name,
Object value)
Add new Header
|
void |
setHeaders(Map<String,Object> exchangeHeaders)
Replace the existing message headers
|
void |
setProperties(Map<String,Object> exchangeProperties)
Replace the existing exchange properties
|
void |
setProperty(String name,
Object value)
Add new Property
|
void |
setSoapHeaders(List<SoapHeader> headers)
sets the SOAP headers in a message that will be sent
|
<T> T getBody(Class<T> type)
T - Object getBody()
void setBody(Object exchangeBody)
exchangeBody - Map<String,DataHandler> getAttachments()
void setAttachments(Map<String,DataHandler> attachments)
attachments - <T> T getHeader(String headerName, Class<T> headerType)
headerType - The object type in which the header value is to be returnedheaderName - Name of the header to be returnedvoid setHeaders(Map<String,Object> exchangeHeaders)
exchangeHeaders - void setHeader(String name, Object value)
name - Name of the header to be addedvalue - Value of the header to be addedMap<String,Object> getProperties()
void setProperties(Map<String,Object> exchangeProperties)
exchangeProperties - the exchange Properties to setvoid setProperty(String name, Object value)
name - and value the exchangeProperties to setObject getProperty(String name)
name - long getBodySize()
long getAttachmentsSize()
void addAttachmentHeader(String headerName, String headerValue, AttachmentWrapper attachment)
headerName - the name of this headerheaderValue - the value of this headerattachment - the attachment for which the header is to be addedvoid setAttachmentHeader(String headerName, String headerValue, AttachmentWrapper attachment)
headerName - the name of this headerheaderValue - the value for this headerattachment - the attachment on which header has to be setString getAttachmentHeader(String headerName, AttachmentWrapper attachment)
headerName - the name of this headerattachment - the attachment of this headervoid removeAttachmentHeader(String headerName, AttachmentWrapper attachment)
headerName - the name of this headerattachment - the attachment for which to remove headerMap<String,AttachmentWrapper> getAttachmentWrapperObjects()
void setAttachmentWrapperObjects(Map<String,AttachmentWrapper> attachmentObjects)
attachments - the attachmentsvoid addAttachmentObject(String id, AttachmentWrapper content)
id - the id to store the attachment undercontent - the attachment@Deprecated void addAttachmentHeader(String headerName, String headerValue, org.apache.camel.Attachment attachment)
headerName - the name of this headerheaderValue - the value of this headerattachment - the attachment for which the header is to be added@Deprecated void setAttachmentHeader(String headerName, String headerValue, org.apache.camel.Attachment attachment)
headerName - the name of this headerheaderValue - the value for this headerattachment - the attachment on which header has to be set@Deprecated String getAttachmentHeader(String headerName, org.apache.camel.Attachment attachment)
headerName - the name of this headerattachment - the attachment of this header@Deprecated void removeAttachmentHeader(String headerName, org.apache.camel.Attachment attachment)
headerName - the name of this headerattachment - the attachment for which to remove header@Deprecated Map<String,org.apache.camel.Attachment> getAttachmentObjects()
@Deprecated void setAttachmentObjects(Map<String,org.apache.camel.Attachment> attachmentObjects)
attachments - the attachments@Deprecated void addAttachmentObject(String id, org.apache.camel.Attachment content)
id - the id to store the attachment undercontent - the attachmentList<SoapHeader> getSoapHeaders()
void setSoapHeaders(List<SoapHeader> headers)
headers - the SOAP headersvoid clearSoapHeaders()
Copyright © 2022. All rights reserved.