|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.component.mail.MailBinding
public class MailBinding
A Strategy used to convert between a Camel Exchange
and Message
to and
from a Mail MimeMessage
Constructor Summary | |
---|---|
MailBinding()
|
|
MailBinding(HeaderFilterStrategy headerFilterStrategy)
|
Method Summary | |
---|---|
protected void |
addAttachmentsToMultipart(Message camelMessage,
MimeMultipart multipart,
String partDisposition)
|
protected void |
addBodyToMultipart(Message camelMessage,
MailConfiguration configuration,
MimeMultipart activeMultipart)
|
protected void |
appendAttachmentsFromCamel(MimeMessage mimeMessage,
Message camelMessage,
MailConfiguration configuration)
Appends the Mail attachments from the Camel MailMessage |
protected void |
appendHeadersFromCamelMessage(MimeMessage mimeMessage,
Exchange exchange,
Message camelMessage)
Appends the Mail headers from the Camel MailMessage |
protected void |
createMultipartAlternativeMessage(MimeMessage mimeMessage,
Message camelMessage,
MailConfiguration configuration)
|
Object |
extractBodyFromMail(MailExchange exchange,
Message message)
Extracts the body from the Mail message |
protected Map<String,Object> |
extractHeadersFromMail(Message mailMessage)
|
protected static String |
getAlternativeBody(MailConfiguration configuration,
Message camelMessage)
|
protected static boolean |
hasAlternativeBody(MailConfiguration configuration,
Message camelMessage)
|
void |
populateMailMessage(MailEndpoint endpoint,
MimeMessage mimeMessage,
Exchange exchange)
|
protected void |
setRecipientFromEndpointConfiguration(MimeMessage mimeMessage,
MailEndpoint endpoint)
Appends the Mail headers from the endpoint configuraiton. |
protected boolean |
shouldOutputAttachment(Message camelMessage,
String attachmentFilename,
DataHandler handler)
Strategy to allow filtering of attachments which are put on the Mail message |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MailBinding()
public MailBinding(HeaderFilterStrategy headerFilterStrategy)
Method Detail |
---|
public void populateMailMessage(MailEndpoint endpoint, MimeMessage mimeMessage, Exchange exchange) throws MessagingException, IOException
MessagingException
IOException
public Object extractBodyFromMail(MailExchange exchange, Message message)
protected void appendHeadersFromCamelMessage(MimeMessage mimeMessage, Exchange exchange, Message camelMessage) throws MessagingException
MailMessage
MessagingException
protected void setRecipientFromEndpointConfiguration(MimeMessage mimeMessage, MailEndpoint endpoint) throws MessagingException
MessagingException
protected void appendAttachmentsFromCamel(MimeMessage mimeMessage, Message camelMessage, MailConfiguration configuration) throws MessagingException
MailMessage
MessagingException
protected void addAttachmentsToMultipart(Message camelMessage, MimeMultipart multipart, String partDisposition) throws MessagingException
MessagingException
protected void createMultipartAlternativeMessage(MimeMessage mimeMessage, Message camelMessage, MailConfiguration configuration) throws MessagingException
MessagingException
protected void addBodyToMultipart(Message camelMessage, MailConfiguration configuration, MimeMultipart activeMultipart) throws MessagingException
MessagingException
protected boolean shouldOutputAttachment(Message camelMessage, String attachmentFilename, DataHandler handler)
protected Map<String,Object> extractHeadersFromMail(Message mailMessage) throws MessagingException
MessagingException
protected static boolean hasAlternativeBody(MailConfiguration configuration, Message camelMessage)
protected static String getAlternativeBody(MailConfiguration configuration, Message camelMessage)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |