org.apache.camel.component.mail
Class MailEndpoint

java.lang.Object
  extended by org.apache.camel.support.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, org.apache.camel.StatefulService, org.apache.camel.SuspendableService

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

Endpoint for Camel Mail.

Version:

Field Summary
 
Fields inherited from class org.apache.camel.support.ServiceSupport
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
 
Constructor Summary
MailEndpoint()
           
MailEndpoint(String endpointUri)
           
MailEndpoint(String uri, MailComponent component, MailConfiguration configuration)
           
MailEndpoint(String endpointUri, MailConfiguration configuration)
          Deprecated. 
 
Method Summary
 org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
           
 org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor, JavaMailSender 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(JavaMailSender sender)
          Creates a producer using the given sender
 MailBinding getBinding()
           
 MailConfiguration getConfiguration()
           
 ContentTypeResolver getContentTypeResolver()
           
 org.apache.camel.spi.HeaderFilterStrategy getHeaderFilterStrategy()
           
 int getMaxMessagesPerPoll()
           
 javax.mail.search.SearchTerm getSearchTerm()
           
 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)
           
 void setSearchTerm(javax.mail.search.SearchTerm searchTerm)
           
 
Methods inherited from class org.apache.camel.impl.ScheduledPollEndpoint
configurePollingConsumer, configureProperties, configureScheduledPollConsumerProperties
 
Methods inherited from class org.apache.camel.impl.DefaultEndpoint
configureConsumer, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, hashCode, isLenientProperties, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setProperties, setSynchronous, toString
 
Methods inherited from class org.apache.camel.support.ServiceSupport
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, 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

@Deprecated
public MailEndpoint(String endpointUri,
                               MailConfiguration configuration)
Deprecated. 


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(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,
                                                JavaMailSender 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)

getSearchTerm

public javax.mail.search.SearchTerm getSearchTerm()

setSearchTerm

public void setSearchTerm(javax.mail.search.SearchTerm searchTerm)


Apache Camel