|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.impl.MessageSupport
org.apache.camel.impl.DefaultMessage
org.apache.camel.component.mail.MailMessage
public class MailMessage
Represents a Message for working with Mail
| Constructor Summary | |
|---|---|
MailMessage()
|
|
MailMessage(Message message)
|
|
| Method Summary | |
|---|---|
MailMessage |
copy()
Creates a copy of this message so that it can be used and possibly modified further in another exchange |
void |
copyFrom(Message that)
Copies the contents of the other message into this message |
protected Object |
createBody()
A factory method to allow a provider to lazily create the message body for inbound messages from other sources |
Message |
getMessage()
Returns the underlying Mail message |
Message |
getOriginalMessage()
Returns the original underlying Mail message |
MailMessage |
newInstance()
Returns a new instance |
protected void |
populateInitialAttachments(Map<String,DataHandler> map)
A strategy method populate the initial set of attachments on an inbound message from an underlying binding |
protected void |
populateInitialHeaders(Map<String,Object> map)
A strategy method populate the initial set of headers on an inbound message from an underlying binding |
void |
setMessage(Message mailMessage)
|
String |
toString()
|
| Methods inherited from class org.apache.camel.impl.DefaultMessage |
|---|
addAttachment, createAttachments, createExchangeId, createHeaders, getAttachment, getAttachmentNames, getAttachments, getHeader, getHeader, getHeader, getHeader, getHeaders, hasAttachments, hasHeaders, hasPopulatedHeaders, isFault, removeAttachment, removeHeader, removeHeaders, setAttachments, setFault, setHeader, setHeaders |
| Methods inherited from class org.apache.camel.impl.MessageSupport |
|---|
createMessageId, getBody, getBody, getBody, getExchange, getMandatoryBody, getMandatoryBody, getMessageId, setBody, setBody, setExchange, setMessageId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MailMessage()
public MailMessage(Message message)
| Method Detail |
|---|
public String toString()
toString in class DefaultMessagepublic MailMessage copy()
Message
copy in interface Messagecopy in class MessageSupportpublic Message getOriginalMessage()
public Message getMessage()
public void setMessage(Message mailMessage)
public MailMessage newInstance()
MessageSupport
newInstance in class DefaultMessageprotected Object createBody()
MessageSupport
createBody in class MessageSupportprotected void populateInitialHeaders(Map<String,Object> map)
DefaultMessage
populateInitialHeaders in class DefaultMessagemap - is the empty header map to populateprotected void populateInitialAttachments(Map<String,DataHandler> map)
DefaultMessage
populateInitialAttachments in class DefaultMessagemap - is the empty attachment map to populatepublic void copyFrom(Message that)
Message
copyFrom in interface MessagecopyFrom in class DefaultMessagethat - the other message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||