Commit Graph

7448 Commits

Author SHA1 Message Date
Mark Fisher
c76daa497d Using Asserts with IllegalArgumentException/IllegalStateException instead of ConfigurationException. 2008-09-29 13:26:27 +00:00
Mark Fisher
e6f22df1bb Using Asserts with IllegalArgumentException/IllegalStateException instead of ConfigurationException. 2008-09-29 13:25:43 +00:00
Jonas Partner
5bf96eeb08 OPEN - issue INT-310: XML Document Builders Not Namespace Aware
set default on document builders to be namespace aware
2008-09-29 12:48:25 +00:00
Mark Fisher
6d8a640600 Removed empty 'endpoint' package 2008-09-29 03:22:20 +00:00
Mark Fisher
29554a130b Removed empty 'endpoint' package 2008-09-29 02:24:13 +00:00
Mark Fisher
f55336ba55 Renamed SecurityTestUtil to SecurityTestUtils. 2008-09-29 02:23:00 +00:00
Mark Fisher
121c7a65b1 Moved all security code other than ChannelSecurityInterceptor (including endpoint interceptor and securityContext propagation) to the sandbox prior to 1.0. 2008-09-29 02:16:50 +00:00
Mark Fisher
73bf0a0a20 Increased test timeout. 2008-09-28 22:28:16 +00:00
Mark Fisher
f4a3dadb55 Updated CafeDemo to use the new @Gateway method annotation. 2008-09-28 22:18:43 +00:00
Mark Fisher
170bc6ea79 Added the @Gateway annotation for per-method configuration when using GatewayProxyFactoryBean (INT-383). Also, the AbstractMessagingGateway now supports non-pollable reply channels. Note however, if using a gateway for no-arg receive() invocations, a PollableChannel is required and otherwise an IllegalStateException will be thrown (INT-384). 2008-09-28 22:15:22 +00:00
Mark Fisher
30dd76190b formatting 2008-09-28 21:41:23 +00:00
Iwein Fuld
285a6d2fb3 RESOLVED - issue INT-382: write integration test for Splitter
http://jira.springframework.org/browse/INT-382
2008-09-28 21:24:57 +00:00
Mark Fisher
a76c65220b GatewayProxyFactoryBean now creates a Map of gateways (per-Method). This will enable support for @Gateway annotations (coming soon). Also, the @Header and @Headers annotations are now supported for gateway method parameters. The 'request-channel' and 'reply-channel' attributes of the <gateway/> element have been changed to 'default-request-channel' and 'default-reply-channel' since the request/reply channels will be configurable on a method-by-method basis with annotations (the same applies to 'request-timeout' and 'reply-timeout'). The MessageMapper interface has been split into InboundMessageMapper (with 'toMessage') and OutboundMessageMapper (with 'fromMessage') since the behavior is not always symmetrical For example, the gateway uses MethodParameterMessageMapper for creating a Message *from* the args array but it uses SimpleMessageMapper (the new name for DefaultMessageMapper) to create a Message whose payload is the method's return value. 2008-09-28 19:58:24 +00:00
Mark Fisher
9afcda0a68 The <splitter/> element now creates a DefaultSplitter when no "ref" attribute is defined (INT-354). 2008-09-28 18:56:34 +00:00
Mark Fisher
98fc463155 Refactored MethodParameterMessageMapper's 'resolveHeaderName()' method into the MethodParameterMetadata inner class as getHeaderName(). 2008-09-28 13:46:39 +00:00
Iwein Fuld
414fa7645e OPEN - issue INT-382: write integration test for Splitter
http://jira.springframework.org/browse/INT-382
2008-09-28 05:16:12 +00:00
Mark Fisher
2e175b638d The @Headers annotation is now required (for clarity) when mapping from a Message to a parameter intending to receive MessageHeaders. If the expected payload type is a Map or Properties object, it can still be mapped to any non-annotated parameter of that same type. 2008-09-28 00:03:55 +00:00
Mark Fisher
cf57a20b33 Added validation and tests (exactly 1 Message or payload when mapping with toMessage(), etc). 2008-09-27 19:33:32 +00:00
Mark Fisher
e86b9eb6d8 Added the @Headers parameter-level annotation for mapping a java.util.Map (with String-typed keys) to/from the MessageHeaders in MethodParameterMessageMapper. 2008-09-27 18:50:35 +00:00
Mark Fisher
f643196b64 Added tests for the 'toMessage()' method of MethodParameterMessageMapper. 2008-09-27 16:11:41 +00:00
Mark Fisher
fd77d1a1d7 Started implementation of the 'toMessage()' functionality on MethodParameterMessageMapper (to be used by GatewayProxyFactoryBean after refactoring). Resolves parameters annotated with @Header and payload Objects. 2008-09-27 16:09:23 +00:00
Mark Fisher
1cfe32cd21 Moved the MessageMapper strategy interface from the 'gateway' package to the 'message' package. 2008-09-27 15:22:28 +00:00
Mark Fisher
9773908155 Refactored MessageMappingParameterResolver to MethodParameterMessageMapper, an implementation of the MessageMapper interface. 2008-09-27 15:18:28 +00:00
Mark Fisher
acd1527470 Refactored isEligibleForCopying() to isReadyOnly(). The check is now done in the setHeader() method instead of only when copying header values. 2008-09-27 00:44:44 +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
8ea24913b5 Added SimpleHeaderEnricherParser. 2008-09-26 20:47:42 +00:00
Mark Fisher
a055f0d97d Added HeaderEnricher. 2008-09-26 20:42:25 +00:00
Mark Fisher
c441b2254f Removed 'headerGenerator' property from MailOutboundChannelAdapterParser. 2008-09-26 18:45:07 +00:00
Mark Fisher
f2b7353165 Added namespace support for FileToStringTransformer and FileToByteArrayTransformer. 2008-09-26 18:27:22 +00:00
Mark Fisher
959b906f4e AbstractTransformerParser now creates the actual endpoint rather than requiring a "ref" to an object that implements Transformer. Therefore the element being parsed must provide 'input-channel' and 'output-channel'. 2008-09-26 17:42:11 +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
40938a36f3 MessageMapper is parameterized. 2008-09-25 21:31:27 +00:00
Mark Fisher
b0a00c7c0d Refactored SimpleMessagingGateway to include a base AbstractMessagingGateway with abstract methods for mapping messages to and from Objects. SimpleMessagingGateway delegates to a MessageMapper instance or uses DefaultMessageMapper. 2008-09-25 21:18:01 +00:00
Mark Fisher
6b659523b9 Moving 'org.springframework.integration.test' module to the sandbox until post 1.0 2008-09-25 20:52:15 +00:00
Mark Fisher
c0747a8bb9 Moving 'org.springframework.integration.test' module to the sandbox until post 1.0 2008-09-25 20:51:38 +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
8b24cd7d6b MessageMapper now defines toMessage() and fromMessage() methods, and the MessageCreator has been removed. 2008-09-25 18:27:52 +00:00
Mark Fisher
ec304b2c10 FtpSource no longer uses a MessageCreator. Instead, it uses MessageBuilder internally, and any Message customization can be applied with Transformers. 2008-09-25 15:39:14 +00:00
Mark Fisher
d30fe71dc2 MessagePublishingInterceptor uses MessageBuilder instead of MessageCreator. 2008-09-25 15:12:53 +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