org.apache.camel.component.mail
Class MailEndpoint
java.lang.Object
org.apache.camel.support.ServiceSupport
org.apache.camel.impl.DefaultEndpoint
org.apache.camel.impl.ScheduledPollEndpoint
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:
Fields inherited from class org.apache.camel.support.ServiceSupport |
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending |
Methods inherited from class org.apache.camel.impl.ScheduledPollEndpoint |
configureProperties |
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, 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 interface org.apache.camel.Service |
start, stop |
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)
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