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

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.impl.DefaultProducer
          extended by org.apache.camel.component.gae.mail.GMailProducer
All Implemented Interfaces:
IsSingleton, Processor, Producer, Service, ShutdownableService

public class GMailProducer
extends DefaultProducer


Field Summary
 
Fields inherited from class org.apache.camel.impl.DefaultProducer
log
 
Constructor Summary
GMailProducer(GMailEndpoint endpoint)
           
 
Method Summary
 GMailEndpoint getEndpoint()
          Gets the endpoint this producer sends to.
 com.google.appengine.api.mail.MailService getMailService()
           
 OutboundBinding<GMailEndpoint,com.google.appengine.api.mail.MailService.Message,Void> getOutboundBinding()
           
 void process(Exchange exchange)
          Invokes the mail service.
 
Methods inherited from class org.apache.camel.impl.DefaultProducer
createExchange, createExchange, createExchange, doStart, doStop, isSingleton, toString
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, doShutdown, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, removeChildService, shutdown, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Constructor Detail

GMailProducer

public GMailProducer(GMailEndpoint endpoint)
Method Detail

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.