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

java.lang.Object
  extended by org.apache.camel.support.ServiceSupport
      extended by org.apache.camel.impl.DefaultEndpoint
          extended by org.apache.camel.component.gae.mail.GMailEndpoint
All Implemented Interfaces:
org.apache.camel.CamelContextAware, OutboundBindingSupport<GMailEndpoint,com.google.appengine.api.mail.MailService.Message,Void>, org.apache.camel.Endpoint, org.apache.camel.IsSingleton, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.HasId, org.apache.camel.StatefulService, org.apache.camel.SuspendableService

public class GMailEndpoint
extends org.apache.camel.impl.DefaultEndpoint
implements OutboundBindingSupport<GMailEndpoint,com.google.appengine.api.mail.MailService.Message,Void>

Represents a Google App Engine Mail endpoint.


Field Summary
 
Fields inherited from class org.apache.camel.support.ServiceSupport
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
 
Constructor Summary
GMailEndpoint(String endpointUri, org.apache.camel.Component component, String sender)
           
 
Method Summary
 org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
           
 org.apache.camel.Producer createProducer()
           
 String getBcc()
           
 String getCc()
           
 com.google.appengine.api.mail.MailService getMailService()
           
 OutboundBinding<GMailEndpoint,com.google.appengine.api.mail.MailService.Message,Void> getOutboundBinding()
           
 String getSender()
           
 String getSubject()
           
 String getTo()
           
 boolean isSingleton()
           
 void setBcc(String bcc)
           
 void setCc(String cc)
           
 void setOutboundBinding(OutboundBinding<GMailEndpoint,com.google.appengine.api.mail.MailService.Message,Void> outboundBinding)
           
 void setSubject(String subject)
           
 void setTo(String to)
           
 
Methods inherited from class org.apache.camel.impl.DefaultEndpoint
configureConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, hashCode, isLenientProperties, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, toString
 
Methods inherited from class org.apache.camel.support.ServiceSupport
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, resume, shutdown, start, stop, suspend
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Constructor Detail

GMailEndpoint

public GMailEndpoint(String endpointUri,
                     org.apache.camel.Component component,
                     String sender)
Method Detail

getOutboundBinding

public OutboundBinding<GMailEndpoint,com.google.appengine.api.mail.MailService.Message,Void> getOutboundBinding()
Specified by:
getOutboundBinding in interface OutboundBindingSupport<GMailEndpoint,com.google.appengine.api.mail.MailService.Message,Void>

setOutboundBinding

public void setOutboundBinding(OutboundBinding<GMailEndpoint,com.google.appengine.api.mail.MailService.Message,Void> outboundBinding)
Specified by:
setOutboundBinding in interface OutboundBindingSupport<GMailEndpoint,com.google.appengine.api.mail.MailService.Message,Void>

getMailService

public com.google.appengine.api.mail.MailService getMailService()

getSender

public String getSender()

getSubject

public String getSubject()

setSubject

public void setSubject(String subject)

getTo

public String getTo()

setTo

public void setTo(String to)

getCc

public String getCc()

setCc

public void setCc(String cc)

getBcc

public String getBcc()

setBcc

public void setBcc(String bcc)

createConsumer

public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
                                         throws Exception
Specified by:
createConsumer in interface org.apache.camel.Endpoint
Throws:
Exception

createProducer

public org.apache.camel.Producer createProducer()
                                         throws Exception
Specified by:
createProducer in interface org.apache.camel.Endpoint
Throws:
Exception

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface org.apache.camel.IsSingleton


Apache CAMEL