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:
- org.apache.camel.Endpoint<MailExchange>
public class MailEndpoint
- extends org.apache.camel.impl.ScheduledPollEndpoint<MailExchange>
- Version:
- $Revision:520964 $
Methods inherited from class org.apache.camel.impl.ScheduledPollEndpoint |
configureConsumer, configureProperties, getConsumerProperties, setConsumerProperties |
Methods inherited from class org.apache.camel.impl.DefaultEndpoint |
convertTo, createExchange, createExecutorService, createPollingConsumer, equals, getComponent, getContext, getEndpointUri, getExchangeType, getExecutorService, hashCode, setExecutorService, toExchangeType, toString |
MailEndpoint
public MailEndpoint(String uri,
MailComponent component,
MailConfiguration configuration)
createProducer
public org.apache.camel.Producer<MailExchange> createProducer()
throws Exception
- Throws:
Exception
createProducer
public org.apache.camel.Producer<MailExchange> createProducer(org.springframework.mail.javamail.JavaMailSender sender)
throws Exception
- Creates a producer using the given sender
- Throws:
Exception
createConsumer
public org.apache.camel.Consumer<MailExchange> createConsumer(org.apache.camel.Processor processor)
throws Exception
- Throws:
Exception
createConsumer
public org.apache.camel.Consumer<MailExchange> createConsumer(org.apache.camel.Processor processor,
Folder folder)
throws Exception
- Creates a consumer using the given processor and transport
- Parameters:
processor
- the processor to use to process the messagesfolder
- the JavaMail Folder to use for inbound messages
- Returns:
- a newly created consumer
- Throws:
Exception
- if the consumer cannot be created
createExchange
public MailExchange createExchange()
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 © 2007 Apache Software Foundation. All Rights Reserved.