org.apache.camel.component.mail
Class MailEndpoint
java.lang.Object
org.apache.camel.impl.DefaultEndpoint<E>
org.apache.camel.impl.ScheduledPollEndpoint<MailExchange>
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 $
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 |
MailEndpoint
public MailEndpoint(String uri,
MailComponent component,
MailConfiguration configuration)
MailEndpoint
public MailEndpoint(String endpointUri,
MailConfiguration configuration)
MailEndpoint
public MailEndpoint(String endpointUri)
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.