Commit Graph

50 Commits

Author SHA1 Message Date
Iwein Fuld
81c8051b44 OPEN - issue INT-540: AbstractMailReceiver needs to have authenticator property
http://jira.springframework.org/browse/INT-540

added javaMailAuthenticator property. If not set passing a null Authenticator to getInstance(props, auth) will have the exact same behavior as before.
2009-01-26 18:56:28 +00:00
Mark Fisher
3f6c07e15c INT-535 2008-12-22 21:42:46 +00:00
Mark Fisher
1778e4e324 INT-526 2008-12-17 04:36:25 +00:00
Mark Fisher
8f5c84d1fb Added tool annotations to the mail schema (INT-114). Also, renamed the 'javamail-properties' attribute to 'java-mail-properties' for the outbound-channel-adapter (to be consistent with the inbound channel adapters). 2008-12-17 01:47:16 +00:00
Mark Fisher
9463290328 Transformer parsers now implement getTransformerClassName() to return a String instead of returning Class instances with getTransformerClass(). This avoids the loading of Classes that may lead to dependencies not available for the tools (INT-114). 2008-12-10 23:47:05 +00:00
Mark Fisher
1755dfd676 Mail transformers may now be used within a 'chain' (INT-498). 2008-12-10 17:59:08 +00:00
Mark Fisher
bc4a20f6c5 All pre-defined internal header names are now valid Java identifiers. Dot delimiters have been replaced by underscores, and hyphenated names are now camelCase. The SimpleHeaderEnricherParser uses Conventions.attributeToPropertyName(). The attributes are now legal for passing as JMS properties (INT-511). 2008-12-09 21:32:29 +00:00
Mark Fisher
204deb4163 Added default poller. 2008-11-25 04:13:47 +00:00
Mark Fisher
f5bbea66f9 INT-469 2008-11-13 01:35:17 +00:00
Mark Fisher
f54b27bd7b INT-302 2008-11-12 17:39:52 +00:00
Mark Fisher
f4ccde6257 Message Endpoints and the SimpleTaskScheduler now manage their own lifecycles. The ApplicationContextMessageBus is no longer necessary (part of INT-462). The MessagePublishingErrorHandler now detects the default error channel within the beanFactory if necessary (INT-464). 2008-11-11 20:11:21 +00:00
Mark Fisher
ba251bffa9 Added 'auto-startup' attribute to channel adapter elements. 2008-11-11 19:05:23 +00:00
Mark Fisher
39a8486ac8 Refactored MessageConsumer with onMessage to MessageHandler with handleMessage. 2008-11-03 14:17:53 +00:00
Mark Fisher
90dcb7e88b Renamed AbstractMessageProducingEndpoint to MessageProducerSupport. 2008-11-03 11:52:30 +00:00
Mark Fisher
731b238f1c Configuring the AbstractMailReceiver's maxFetchSize property to match the poller's max-messages-per-poll value if available. Otherwise, setting to 1 to avoid lost mails (since pre-fetched mail messages would be added to the mailQueue and deleted from the server). 2008-10-30 21:23:13 +00:00
Mark Fisher
16e20517ef ImapIdleChannelAdapter and MailReceivingMessageSource both now require a MessageReceiver instance as the constructor argument rather than accepting a URI, creating a MessageReceiver, and then passing properties to that receiver. Also, the 'mail:inbound-channel-adapter' element now supports the 'java-mail-properties' attribute. 2008-10-30 21:04:30 +00:00
Mark Fisher
9fd6b4d073 Moved MailTransportUtils. 2008-10-30 20:16:51 +00:00
Mark Fisher
5b06076d1e Removed unnecessary folder closing call. 2008-10-30 20:10:32 +00:00
Mark Fisher
3817fa2598 Refactored inbound mail channel adapters. Refactored the classes from the 'monitor' package to include a MailReceiver strategy interface with POP3 and IMAP implementations. Added a polling inbound channel adapter that polls a MailReceivingMessageSource which in turn delegates to one of the MailReceiver implementations. Also, added the ImapIdleChannelAdapter for asynchronous callbacks rather than polling (INT-444). 2008-10-30 19:52:47 +00:00
Mark Fisher
b10afab6f4 Connection starts if not already running in the receive() call. 2008-10-28 17:42:22 +00:00
Mark Fisher
45f8d5a9ac INT-441 2008-10-28 16:12:55 +00:00
Mark Fisher
ebcccdc5c9 Moved MessagingException into the new 'org.springframework.integration.core' package. 2008-10-15 03:28:50 +00:00
Mark Fisher
7da7c9e5a0 Moved MessageHeaders into the new 'org.springframework.integration.core' package. 2008-10-15 03:10:17 +00:00
Mark Fisher
08043b541d Moved Message into the new 'org.springframework.integration.core' package. 2008-10-15 02:54:29 +00:00
Mark Fisher
b4c86f838e Added support for the <poller/> sub-element within jms:outbound-channel-adapter, and added the "channel" attribute for the inbound console channel adapter. 2008-10-12 03:34:17 +00:00
Mark Fisher
24793ead19 Separated annotation post processors and bean definition parsers into 'annotation' and 'xml' sub-packages of the 'org.springframework.integration.config' package. 2008-10-10 18:55:24 +00:00
Mark Fisher
11e53cf7e7 Moved GatewayParser, AbstractTransformerParser, and SimpleHeaderEnricherParser into org.springframework.integration.config to avoid dependency cycles. 2008-10-10 17:11:18 +00:00
Mark Fisher
b68f7ca17a Removing dependencies on ConfigurationException. 2008-10-10 00:57:05 +00:00
Mark Fisher
01c9efef66 AbstractEndpoint is no longer TaskScheduler aware. The ListeningMailSource now provides its own taskExecutor property and uses a SimpleAsyncTaskExecutor by default. 2008-10-10 00:28:40 +00:00
Mark Fisher
ad4d94560b CronTrigger expressions may now contain any amount of whitespace between fields. Also, removed inaccessible core TestUtils dependency from the mail module. 2008-10-09 13:57:43 +00:00
Mark Fisher
49361dba5c The TaskScheduler for the MessageBus is now created in MessageBusParser if no explicit reference has been provided via the "task-executor" attribute of the <message-bus/> element. The configuration of an asynchronous ApplicationEventMulticaster has also been pushed to the parser rather than being contained within the MessageBus implementation. 2008-10-09 13:45:07 +00:00
Mark Fisher
1c9e7af1da Simplified PREFIX for MailHeaders. 2008-09-26 23:36:23 +00:00
Mark Fisher
235c7ee385 Added MailToStringTransformerParser. 2008-09-26 23:17:08 +00:00
Mark Fisher
13f7003a4e Added AbstractMailMessageTransformer. 2008-09-26 23:16:24 +00:00
Mark Fisher
d5d227bcc5 Added MailToStringTransformer. 2008-09-26 23:12:48 +00:00
Mark Fisher
485a5aa071 Defined the <mail-to-string-transformer/> element. 2008-09-26 23:11:17 +00:00
Mark Fisher
e1a4ad1a8f Added support for the <header-enricher/> element in the 'mail' namespace. 2008-09-26 21:13:15 +00:00
Mark Fisher
70bb85f7a1 MailOutboundChannelAdapterParser now configures the "port" and "javamail-properties" on the MailSender if defined. 2008-09-26 21:12:27 +00:00
Mark Fisher
34979a6927 MailSendingMessageConsumer now fails with an IllegalStateException if no value is available for MailHeaders.TO. The array-based header values (e.g. to, cc, bcc) are now converted from comma-delimited Strings if necessary. 2008-09-26 21:08:57 +00:00
Mark Fisher
e6c41360db Added 'port' and 'javamail-properties' attributes for the 'outbound-channel-adapter' element. 2008-09-26 21:07:21 +00:00
Mark Fisher
ccd3a2f831 Header names are lowercase. Nicer when using header-enricher in xml. 2008-09-26 20:58:59 +00:00
Mark Fisher
c441b2254f Removed 'headerGenerator' property from MailOutboundChannelAdapterParser. 2008-09-26 18:45:07 +00:00
Mark Fisher
9ee921ed7c Removed the PollableSource interface, and migrated the 'receive()' method to MessageSource. 2008-09-26 16:31:26 +00:00
Mark Fisher
78c49157bd Refactored inbound Mail adapters. Removed MailHeaderMapper and MessageConverter strategies. The Message payload will be a javax.mail.Message instance. Transformers will be used to convert the payload (e.g. Mail-to-String) and map header values. 2008-09-26 16:03:01 +00:00
Mark Fisher
1aff8abeee Removed MailHeaderGenerator. The MailSendingMessageConsumer handles the mapping of header values, but those values should be provided by a Transformer initially. 2008-09-25 20:36:00 +00:00
Mark Fisher
51eb976236 Removed MailMessageMappers. MailMessageSendingConsumer now handles any MailMessage payload or byte array payload. For all other payload types, it calls 'toString' to generate the Mail text. 2008-09-25 14:40:48 +00:00
Mark Fisher
0ed3ba7657 Refactored CharacterStreamOutboundChannelAdapter to CharacterStreamWritingMessageConsumer and simplified the abstract method for AbstractOutboundChannelAdapter so that only a bean definition is returned (the base class now handles registration). 2008-09-24 00:00:55 +00:00
Mark Fisher
7f917b5dd8 Removed MessageTarget. All components that referenced targets (e.g. Outbound Channel Adapter implementations) now work with the MessageConsumer interface instead. 2008-09-22 19:02:43 +00:00
Mark Fisher
bf151ac50a MailTarget is now MailSendingMessageConsumer, and the "integration/mail" namespace now defines an "outbound-channel-adapter" element. 2008-09-22 18:51:34 +00:00
Mark Fisher
db7bc0b9ea Migrated Mail Channel Adapter code from 'org.springframework.integration.adapter' to the new 'org.springframework.integration.mail' module. 2008-09-22 15:16:47 +00:00