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:
CamelContextAware, Endpoint<MailExchange>

public class MailEndpoint
extends ScheduledPollEndpoint<MailExchange>

Endpoint for Camel Mail.

Version:
$Revision:520964 $

Constructor Summary
MailEndpoint(String endpointUri)
           
MailEndpoint(String uri, MailComponent component, MailConfiguration configuration)
           
MailEndpoint(String endpointUri, MailConfiguration configuration)
           
 
Method Summary
 Consumer<MailExchange> createConsumer(Processor processor)
           
 Consumer<MailExchange> createConsumer(Processor processor, JavaMailSenderImpl sender)
          Creates a consumer using the given processor and sender
 MailExchange createExchange(ExchangePattern pattern)
           
 MailExchange createExchange(Message message)
           
 Producer<MailExchange> createProducer()
           
 Producer<MailExchange> createProducer(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, createEndpointUri, createExchange, createExchange, createExecutorService, createPollingConsumer, equals, getCamelContext, getComponent, getContext, getEndpointUri, getExchangePattern, getExchangeType, getExecutorService, hashCode, isLenientProperties, setCamelContext, setContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setExecutorService, 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)

MailEndpoint

public MailEndpoint(String endpointUri,
                    MailConfiguration configuration)

MailEndpoint

public MailEndpoint(String endpointUri)
Method Detail

createProducer

public Producer<MailExchange> createProducer()
                                      throws Exception
Throws:
Exception

createProducer

public Producer<MailExchange> createProducer(JavaMailSender sender)
                                      throws Exception
Creates a producer using the given sender

Throws:
Exception

createConsumer

public Consumer<MailExchange> createConsumer(Processor processor)
                                      throws Exception
Throws:
Exception

createConsumer

public Consumer<MailExchange> createConsumer(Processor processor,
                                             JavaMailSenderImpl sender)
                                      throws Exception
Creates a consumer using the given processor and sender

Throws:
Exception

createExchange

public MailExchange createExchange(ExchangePattern pattern)
Specified by:
createExchange in interface Endpoint<MailExchange>
Overrides:
createExchange in class DefaultEndpoint<MailExchange>

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 © 2009 Apache Software Foundation. All Rights Reserved.