org.apache.camel.component.gae.mail
Class GMailBinding

java.lang.Object
  extended by org.apache.camel.component.gae.mail.GMailBinding
All Implemented Interfaces:
OutboundBinding<GMailEndpoint,com.google.appengine.api.mail.MailService.Message,Void>

public class GMailBinding
extends Object
implements OutboundBinding<GMailEndpoint,com.google.appengine.api.mail.MailService.Message,Void>

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
 Exchange readResponse(GMailEndpoint endpoint, Exchange exchange, Void response)
          Populates an Exchange from response data and endpoint configuration data.
protected  void writeAttachments(GMailEndpoint endpoint, Exchange exchange, com.google.appengine.api.mail.MailService.Message request)
           
protected  void writeBcc(GMailEndpoint endpoint, Exchange exchange, com.google.appengine.api.mail.MailService.Message request)
           
protected  void writeBody(GMailEndpoint endpoint, Exchange exchange, com.google.appengine.api.mail.MailService.Message request)
           
protected  void writeCc(GMailEndpoint endpoint, Exchange exchange, com.google.appengine.api.mail.MailService.Message request)
           
protected  void writeFrom(GMailEndpoint endpoint, Exchange exchange, com.google.appengine.api.mail.MailService.Message request)
           
 com.google.appengine.api.mail.MailService.Message writeRequest(GMailEndpoint endpoint, 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, Exchange exchange, com.google.appengine.api.mail.MailService.Message request)
           
protected  void writeTo(GMailEndpoint endpoint, 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

GMAIL_SENDER

public static final String GMAIL_SENDER
Camel header for setting the mail message sender.

See Also:
Constant Field Values

GMAIL_SUBJECT

public static final String GMAIL_SUBJECT
Camel header for setting the mail message subject.

See Also:
Constant Field Values

GMAIL_TO

public static final String GMAIL_TO
Camel header for setting the mail message to-recipient (single recipient or comma-separated list).

See Also:
Constant Field Values

GMAIL_CC

public static final String GMAIL_CC
Camel header for setting the mail message cc-recipient (single recipient or comma-separated list).

See Also:
Constant Field Values

GMAIL_BCC

public static final String GMAIL_BCC
Camel header for setting the mail message bcc-recipient (single recipient or comma-separated list).

See Also:
Constant Field Values
Constructor Detail

GMailBinding

public GMailBinding()
Method Detail

writeRequest

public com.google.appengine.api.mail.MailService.Message writeRequest(GMailEndpoint endpoint,
                                                                      Exchange exchange,
                                                                      com.google.appengine.api.mail.MailService.Message request)
Reads data from exchange and writes it to a newly created MailService.Message instance. The request parameter is ignored.

Specified by:
writeRequest in interface OutboundBinding<GMailEndpoint,com.google.appengine.api.mail.MailService.Message,Void>
Parameters:
endpoint -
exchange -
request - ignored.
Returns:
a newly created MailService.Message instance containing data from exchange.

readResponse

public Exchange readResponse(GMailEndpoint endpoint,
                             Exchange exchange,
                             Void response)
Description copied from interface: OutboundBinding
Populates an Exchange from response data and endpoint configuration data.

Specified by:
readResponse in interface OutboundBinding<GMailEndpoint,com.google.appengine.api.mail.MailService.Message,Void>
Parameters:
endpoint - endpoint providing binding-relevant information.
exchange - exchange to be populated or created (if null) from response data.
response - response to read data from.
Returns:
the populated exchange.

writeFrom

protected void writeFrom(GMailEndpoint endpoint,
                         Exchange exchange,
                         com.google.appengine.api.mail.MailService.Message request)

writeTo

protected void writeTo(GMailEndpoint endpoint,
                       Exchange exchange,
                       com.google.appengine.api.mail.MailService.Message request)

writeCc

protected void writeCc(GMailEndpoint endpoint,
                       Exchange exchange,
                       com.google.appengine.api.mail.MailService.Message request)

writeBcc

protected void writeBcc(GMailEndpoint endpoint,
                        Exchange exchange,
                        com.google.appengine.api.mail.MailService.Message request)

writeSubject

protected void writeSubject(GMailEndpoint endpoint,
                            Exchange exchange,
                            com.google.appengine.api.mail.MailService.Message request)

writeBody

protected void writeBody(GMailEndpoint endpoint,
                         Exchange exchange,
                         com.google.appengine.api.mail.MailService.Message request)

writeAttachments

protected void writeAttachments(GMailEndpoint endpoint,
                                Exchange exchange,
                                com.google.appengine.api.mail.MailService.Message request)


Apache CAMEL