org.apache.camel.component.gae.mail
Class GMailProducer
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.impl.DefaultProducer
org.apache.camel.component.gae.mail.GMailProducer
- All Implemented Interfaces:
- IsSingleton, Processor, Producer, Service, ShutdownableService
public class GMailProducer
- extends DefaultProducer
| Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, doShutdown, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, removeChildService, shutdown, start, stop |
GMailProducer
public GMailProducer(GMailEndpoint endpoint)
getEndpoint
public GMailEndpoint getEndpoint()
- Description copied from interface:
Producer
- Gets the endpoint this producer sends to.
- Specified by:
getEndpoint in interface Producer- Overrides:
getEndpoint in class DefaultProducer
- Returns:
- the endpoint
getOutboundBinding
public OutboundBinding<GMailEndpoint,com.google.appengine.api.mail.MailService.Message,Void> getOutboundBinding()
getMailService
public com.google.appengine.api.mail.MailService getMailService()
process
public void process(Exchange exchange)
throws Exception
- Invokes the mail service.
- Parameters:
exchange - contains the mail data in the in-message.
- Throws:
Exception - if an internal processing error has occurred.- See Also:
GMailBinding
Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.