|
|||||||||
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 and to and
from a Mail MimeMessage
Constructor Summary | |
---|---|
MailBinding()
|
Method Summary | |
---|---|
protected void |
appendHeadersFromCamel(MimeMessage mimeMessage,
org.apache.camel.Exchange exchange,
org.apache.camel.Message camelMessage)
Appends the Mail headers from the Camel MailMessage |
protected String |
asString(org.apache.camel.Exchange exchange,
Object value)
Converts the given object value to a String |
protected boolean |
empty(Address[] addresses)
|
Object |
extractBodyFromMail(MailExchange exchange,
Message message)
Extracts the body from the Mail message |
void |
populateMailMessage(MailEndpoint endpoint,
MimeMessage mimeMessage,
org.apache.camel.Exchange exchange)
|
protected boolean |
shouldOutputHeader(org.apache.camel.Message camelMessage,
String headerName,
Object headerValue)
Strategy to allow filtering of headers 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()
Method Detail |
---|
public void populateMailMessage(MailEndpoint endpoint, MimeMessage mimeMessage, org.apache.camel.Exchange exchange)
protected boolean empty(Address[] addresses)
public Object extractBodyFromMail(MailExchange exchange, Message message)
exchange
- message
- protected void appendHeadersFromCamel(MimeMessage mimeMessage, org.apache.camel.Exchange exchange, org.apache.camel.Message camelMessage) throws MessagingException
MailMessage
MessagingException
protected String asString(org.apache.camel.Exchange exchange, Object value)
protected boolean shouldOutputHeader(org.apache.camel.Message camelMessage, String headerName, Object headerValue)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |