|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.component.gae.mail.GMailBinding
public class GMailBinding
Binds the MailService.Message
of the mail service to a Camel Exchange
.
Field Summary | |
---|---|
static String |
GMAIL_BCC
Camel header for setting the mail message bcc-recipient (single recipient or comma-separated list). |
static String |
GMAIL_CC
Camel header for setting the mail message cc-recipient (single recipient or comma-separated list). |
static String |
GMAIL_SENDER
Camel header for setting the mail message sender. |
static String |
GMAIL_SUBJECT
Camel header for setting the mail message subject. |
static String |
GMAIL_TO
Camel header for setting the mail message to-recipient (single recipient or comma-separated list). |
Constructor Summary | |
---|---|
GMailBinding()
|
Method Summary | |
---|---|
org.apache.camel.Exchange |
readResponse(GMailEndpoint endpoint,
org.apache.camel.Exchange exchange,
Void response)
Populates an Exchange from response data and endpoint configuration data. |
protected void |
writeAttachments(GMailEndpoint endpoint,
org.apache.camel.Exchange exchange,
com.google.appengine.api.mail.MailService.Message request)
|
protected void |
writeBcc(GMailEndpoint endpoint,
org.apache.camel.Exchange exchange,
com.google.appengine.api.mail.MailService.Message request)
|
protected void |
writeBody(GMailEndpoint endpoint,
org.apache.camel.Exchange exchange,
com.google.appengine.api.mail.MailService.Message request)
|
protected void |
writeCc(GMailEndpoint endpoint,
org.apache.camel.Exchange exchange,
com.google.appengine.api.mail.MailService.Message request)
|
protected void |
writeFrom(GMailEndpoint endpoint,
org.apache.camel.Exchange exchange,
com.google.appengine.api.mail.MailService.Message request)
|
com.google.appengine.api.mail.MailService.Message |
writeRequest(GMailEndpoint endpoint,
org.apache.camel.Exchange exchange,
com.google.appengine.api.mail.MailService.Message request)
Reads data from exchange and writes it to a newly created
MailService.Message instance. |
protected void |
writeSubject(GMailEndpoint endpoint,
org.apache.camel.Exchange exchange,
com.google.appengine.api.mail.MailService.Message request)
|
protected void |
writeTo(GMailEndpoint endpoint,
org.apache.camel.Exchange exchange,
com.google.appengine.api.mail.MailService.Message request)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String GMAIL_SENDER
public static final String GMAIL_SUBJECT
public static final String GMAIL_TO
public static final String GMAIL_CC
public static final String GMAIL_BCC
Constructor Detail |
---|
public GMailBinding()
Method Detail |
---|
public com.google.appengine.api.mail.MailService.Message writeRequest(GMailEndpoint endpoint, org.apache.camel.Exchange exchange, com.google.appengine.api.mail.MailService.Message request)
exchange
and writes it to a newly created
MailService.Message
instance. The request
parameter is
ignored.
writeRequest
in interface OutboundBinding<GMailEndpoint,com.google.appengine.api.mail.MailService.Message,Void>
endpoint
- endpoint providing binding-relevant information.exchange
- exchange to read data from.request
- request to be populated or created (if null
) from exchange data.
MailService.Message
instance containing data from exchange
.public org.apache.camel.Exchange readResponse(GMailEndpoint endpoint, org.apache.camel.Exchange exchange, Void response)
OutboundBinding
Exchange
from response data and endpoint configuration data.
readResponse
in interface OutboundBinding<GMailEndpoint,com.google.appengine.api.mail.MailService.Message,Void>
endpoint
- endpoint providing binding-relevant information.exchange
- exchange to be populated or created (if null
) from response data.response
- response to read data from.
protected void writeFrom(GMailEndpoint endpoint, org.apache.camel.Exchange exchange, com.google.appengine.api.mail.MailService.Message request)
protected void writeTo(GMailEndpoint endpoint, org.apache.camel.Exchange exchange, com.google.appengine.api.mail.MailService.Message request)
protected void writeCc(GMailEndpoint endpoint, org.apache.camel.Exchange exchange, com.google.appengine.api.mail.MailService.Message request)
protected void writeBcc(GMailEndpoint endpoint, org.apache.camel.Exchange exchange, com.google.appengine.api.mail.MailService.Message request)
protected void writeSubject(GMailEndpoint endpoint, org.apache.camel.Exchange exchange, com.google.appengine.api.mail.MailService.Message request)
protected void writeBody(GMailEndpoint endpoint, org.apache.camel.Exchange exchange, com.google.appengine.api.mail.MailService.Message request)
protected void writeAttachments(GMailEndpoint endpoint, org.apache.camel.Exchange exchange, com.google.appengine.api.mail.MailService.Message request)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |