|
|||||||||
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,
ContentTypeResolver contentTypeResolver)
|
Method Summary | |
---|---|
protected void |
addAttachmentsToMultipart(MimeMultipart multipart,
String partDisposition,
Exchange exchange)
|
protected void |
addBodyToMultipart(MailConfiguration configuration,
MimeMultipart activeMultipart,
Exchange exchange)
|
protected void |
appendAttachmentsFromCamel(MimeMessage mimeMessage,
MailConfiguration configuration,
Exchange exchange)
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,
MailConfiguration configuration,
Exchange exchange)
|
protected String |
determineContentType(MailConfiguration configuration,
Exchange exchange)
|
Object |
extractBodyFromMail(MailExchange exchange,
Message message)
Extracts the body from the Mail message |
protected Map<String,Object> |
extractHeadersFromMail(Message mailMessage,
Exchange exchange)
|
protected static String |
getAlternativeBody(MailConfiguration configuration,
Message camelMessage)
|
protected static boolean |
hasAlternativeBody(MailConfiguration configuration,
Message camelMessage)
|
protected String |
populateContentOnBodyPart(BodyPart part,
MailConfiguration configuration,
Exchange exchange)
|
protected String |
populateContentOnMimeMessage(MimeMessage part,
MailConfiguration configuration,
Exchange exchange)
|
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 |
shouldAddAttachment(Exchange exchange,
String attachmentFilename,
DataHandler handler)
Strategy to allow filtering of attachments which are added 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, ContentTypeResolver contentTypeResolver)
Method Detail |
---|
public void populateMailMessage(MailEndpoint endpoint, MimeMessage mimeMessage, Exchange exchange) throws MessagingException, IOException
MessagingException
IOException
protected String determineContentType(MailConfiguration configuration, Exchange exchange)
protected String populateContentOnMimeMessage(MimeMessage part, MailConfiguration configuration, Exchange exchange) throws MessagingException, IOException
MessagingException
IOException
protected String populateContentOnBodyPart(BodyPart part, MailConfiguration configuration, 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, MailConfiguration configuration, Exchange exchange) throws MessagingException, IOException
MailMessage
MessagingException
IOException
protected void addAttachmentsToMultipart(MimeMultipart multipart, String partDisposition, Exchange exchange) throws MessagingException
MessagingException
protected void createMultipartAlternativeMessage(MimeMessage mimeMessage, MailConfiguration configuration, Exchange exchange) throws MessagingException, IOException
MessagingException
IOException
protected void addBodyToMultipart(MailConfiguration configuration, MimeMultipart activeMultipart, Exchange exchange) throws MessagingException, IOException
MessagingException
IOException
protected boolean shouldAddAttachment(Exchange exchange, String attachmentFilename, DataHandler handler)
protected Map<String,Object> extractHeadersFromMail(Message mailMessage, Exchange exchange) 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 |