org.apache.camel.component.mail
Class MailEndpoint

java.lang.Object
  extended by org.apache.camel.impl.DefaultEndpoint
      extended by org.apache.camel.impl.ScheduledPollEndpoint
          extended by org.apache.camel.component.mail.MailEndpoint
All Implemented Interfaces:
CamelContextAware, Endpoint, IsSingleton

public class MailEndpoint
extends ScheduledPollEndpoint

Endpoint for Camel Mail.

Version:
$Revision:520964 $

Constructor Summary
MailEndpoint()
           
MailEndpoint(String endpointUri)
           
MailEndpoint(String uri, MailComponent component, MailConfiguration configuration)
           
MailEndpoint(String endpointUri, MailConfiguration configuration)
           
 
Method Summary
 Consumer createConsumer(Processor processor)
           
 Consumer createConsumer(Processor processor, JavaMailSenderImpl sender)
          Creates a consumer using the given processor and sender
 Exchange createExchange(ExchangePattern pattern)
           
 Exchange createExchange(Message message)
           
 Producer createProducer()
           
 Producer createProducer(JavaMailSender sender)
          Creates a producer using the given sender
 MailBinding getBinding()
           
 MailConfiguration getConfiguration()
           
 ContentTypeResolver getContentTypeResolver()
           
 HeaderFilterStrategy getHeaderFilterStrategy()
           
 int getMaxMessagesPerPoll()
           
 boolean isSingleton()
           
 void setBinding(MailBinding binding)
          Sets the binding used to convert from a Camel message to and from a Mail message
 void setConfiguration(MailConfiguration configuration)
           
 void setContentTypeResolver(ContentTypeResolver contentTypeResolver)
           
 void setHeaderFilterStrategy(HeaderFilterStrategy headerFilterStrategy)
           
 void setMaxMessagesPerPoll(int maxMessagesPerPoll)
           
 
Methods inherited from class org.apache.camel.impl.ScheduledPollEndpoint
configureConsumer, configureProperties, getConsumerProperties, setConsumerProperties
 
Methods inherited from class org.apache.camel.impl.DefaultEndpoint
createEndpointUri, createExchange, createExchange, createPollingConsumer, createScheduledExecutorService, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, getExecutorService, getScheduledExecutorService, hashCode, isLenientProperties, setCamelContext, 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()

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 createProducer()
                        throws Exception
Throws:
Exception

createProducer

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

Throws:
Exception

createConsumer

public Consumer createConsumer(Processor processor)
                        throws Exception
Throws:
Exception

createConsumer

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

Throws:
Exception

isSingleton

public boolean isSingleton()

createExchange

public Exchange createExchange(ExchangePattern pattern)
Specified by:
createExchange in interface Endpoint
Overrides:
createExchange in class DefaultEndpoint

createExchange

public Exchange 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


getConfiguration

public MailConfiguration getConfiguration()

setConfiguration

public void setConfiguration(MailConfiguration configuration)

getHeaderFilterStrategy

public HeaderFilterStrategy getHeaderFilterStrategy()

setHeaderFilterStrategy

public void setHeaderFilterStrategy(HeaderFilterStrategy headerFilterStrategy)

getContentTypeResolver

public ContentTypeResolver getContentTypeResolver()

setContentTypeResolver

public void setContentTypeResolver(ContentTypeResolver contentTypeResolver)

getMaxMessagesPerPoll

public int getMaxMessagesPerPoll()

setMaxMessagesPerPoll

public void setMaxMessagesPerPoll(int maxMessagesPerPoll)


Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.