org.apache.camel.component.mail
Class MailEndpoint

java.lang.Object
  extended by org.apache.camel.impl.DefaultEndpoint<E>
      extended by org.apache.camel.impl.ScheduledPollEndpoint<MailExchange>
          extended by org.apache.camel.component.mail.MailEndpoint
All Implemented Interfaces:
org.apache.camel.Endpoint<MailExchange>

public class MailEndpoint
extends org.apache.camel.impl.ScheduledPollEndpoint<MailExchange>

Version:
$Revision:520964 $

Constructor Summary
MailEndpoint(String uri, MailComponent component, MailConfiguration configuration)
           
 
Method Summary
 org.apache.camel.Consumer<MailExchange> createConsumer(org.apache.camel.Processor processor)
           
 org.apache.camel.Consumer<MailExchange> createConsumer(org.apache.camel.Processor processor, Folder folder)
          Creates a consumer using the given processor and transport
 MailExchange createExchange()
           
 MailExchange createExchange(Message message)
           
 org.apache.camel.Producer<MailExchange> createProducer()
           
 org.apache.camel.Producer<MailExchange> createProducer(org.springframework.mail.javamail.JavaMailSender sender)
          Creates a producer using the given sender
 MailBinding getBinding()
           
 MailConfiguration getConfiguration()
           
 boolean isSingleton()
           
 void setBinding(MailBinding binding)
          Sets the binding used to convert from a Camel message to and from a Mail message
 
Methods inherited from class org.apache.camel.impl.ScheduledPollEndpoint
configureConsumer, configureProperties, getConsumerProperties, setConsumerProperties
 
Methods inherited from class org.apache.camel.impl.DefaultEndpoint
convertTo, createExchange, createExecutorService, createPollingConsumer, equals, getComponent, getContext, getEndpointUri, getExchangeType, getExecutorService, hashCode, setExecutorService, toExchangeType, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MailEndpoint

public MailEndpoint(String uri,
                    MailComponent component,
                    MailConfiguration configuration)
Method Detail

createProducer

public org.apache.camel.Producer<MailExchange> createProducer()
                                                       throws Exception
Throws:
Exception

createProducer

public org.apache.camel.Producer<MailExchange> createProducer(org.springframework.mail.javamail.JavaMailSender sender)
                                                       throws Exception
Creates a producer using the given sender

Throws:
Exception

createConsumer

public org.apache.camel.Consumer<MailExchange> createConsumer(org.apache.camel.Processor processor)
                                                       throws Exception
Throws:
Exception

createConsumer

public org.apache.camel.Consumer<MailExchange> createConsumer(org.apache.camel.Processor processor,
                                                              Folder folder)
                                                       throws Exception
Creates a consumer using the given processor and transport

Parameters:
processor - the processor to use to process the messages
folder - the JavaMail Folder to use for inbound messages
Returns:
a newly created consumer
Throws:
Exception - if the consumer cannot be created

createExchange

public MailExchange createExchange()

createExchange

public MailExchange createExchange(Message message)

getBinding

public MailBinding getBinding()

setBinding

public void setBinding(MailBinding binding)
Sets the binding used to convert from a Camel message to and from a Mail message

Parameters:
binding - the binding to use

isSingleton

public boolean isSingleton()

getConfiguration

public MailConfiguration getConfiguration()


Copyright © 2007 Apache Software Foundation. All Rights Reserved.