org.apache.camel.component.mail
Class MailEndpoint

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      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:
org.apache.camel.CamelContextAware, org.apache.camel.Endpoint, org.apache.camel.IsSingleton, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.HasId

public class MailEndpoint
extends org.apache.camel.impl.ScheduledPollEndpoint

Endpoint for Camel Mail.

Version:

Constructor Summary
MailEndpoint()
           
MailEndpoint(String endpointUri)
           
MailEndpoint(String uri, MailComponent component, MailConfiguration configuration)
           
MailEndpoint(String endpointUri, MailConfiguration configuration)
           
 
Method Summary
 org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
           
 org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor, org.springframework.mail.javamail.JavaMailSenderImpl sender)
          Creates a consumer using the given processor and sender
 org.apache.camel.Exchange createExchange(org.apache.camel.ExchangePattern pattern)
           
 org.apache.camel.Exchange createExchange(javax.mail.Message message)
           
 org.apache.camel.Producer createProducer()
           
 org.apache.camel.Producer createProducer(org.springframework.mail.javamail.JavaMailSender sender)
          Creates a producer using the given sender
 MailBinding getBinding()
           
 MailConfiguration getConfiguration()
           
 ContentTypeResolver getContentTypeResolver()
           
 org.apache.camel.spi.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(org.apache.camel.spi.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, doStart, doStop, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, getId, hashCode, isLenientProperties, isSynchronous, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, toString
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, start, stop, suspend
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

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 org.apache.camel.Producer createProducer()
                                         throws Exception
Throws:
Exception

createProducer

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

Throws:
Exception

createConsumer

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

createConsumer

public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor,
                                                org.springframework.mail.javamail.JavaMailSenderImpl sender)
                                         throws Exception
Creates a consumer using the given processor and sender

Throws:
Exception

isSingleton

public boolean isSingleton()

createExchange

public org.apache.camel.Exchange createExchange(org.apache.camel.ExchangePattern pattern)
Specified by:
createExchange in interface org.apache.camel.Endpoint
Overrides:
createExchange in class org.apache.camel.impl.DefaultEndpoint

createExchange

public org.apache.camel.Exchange createExchange(javax.mail.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 org.apache.camel.spi.HeaderFilterStrategy getHeaderFilterStrategy()

setHeaderFilterStrategy

public void setHeaderFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy)

getContentTypeResolver

public ContentTypeResolver getContentTypeResolver()

setContentTypeResolver

public void setContentTypeResolver(ContentTypeResolver contentTypeResolver)

getMaxMessagesPerPoll

public int getMaxMessagesPerPoll()

setMaxMessagesPerPoll

public void setMaxMessagesPerPoll(int maxMessagesPerPoll)


Apache CAMEL