Commit Graph

1322 Commits

Author SHA1 Message Date
Mark Fisher
be566ea60b Moved start() call. 2008-10-02 01:21:22 +00:00
Mark Fisher
8ecc7604d6 Removed SchedulableTask interface. The only implementation (AbstractPoller) now implements Runnable directly and still provides the getTrigger() method. 2008-10-02 01:11:35 +00:00
Mark Fisher
c24df55e06 AbstractEndpoint no longer implements ChannelRegistryAware. AbstractMessageHandlingEndpoint and RouterEndpoint do. 2008-10-02 00:56:05 +00:00
Mark Fisher
64158f454e ReplyMessageCorrelator simply returns the same Message. The base class already resolves the replyChannel from the 'returnAddress' header value. 2008-10-02 00:42:33 +00:00
Jonas Partner
21fb3a9907 2008-10-01 20:10:01 +00:00
Jonas Partner
ddc2e1cda9 OPEN - issue INT-388: XPath message splitter
First pass implementation no namespace support
2008-10-01 20:08:27 +00:00
Mark Fisher
cd5e68c5c1 AbstractPoller now has a setTransactionDefinition method instead of individual setters. 2008-10-01 18:59:32 +00:00
Mark Fisher
5d5f502e8e Removed BlockingSource (unused). 2008-10-01 18:47:42 +00:00
Jonas Partner
7843007930 refactored namespace support for xpath-router and xpath-selector 2008-10-01 17:21:32 +00:00
Jonas Partner
13100735e0 XPathExpression namespace support 2008-10-01 13:38:53 +00:00
Jonas Partner
8cc19d88b1 OPEN - issue INT-309: XPath Message Selector
http://jira.springframework.org/browse/INT-309
namespace support
2008-10-01 12:28:27 +00:00
Jonas Partner
1b4598568c OPEN - issue INT-309: XPath Message Selector
http://jira.springframework.org/browse/INT-309
Throw messaging exception if XPathSingleChannelNameResolver evaluation returns empty string
2008-09-30 09:36:10 +00:00
Jonas Partner
ed96dcc58f OPEN - issue INT-309: XPath Message Selector
http://jira.springframework.org/browse/INT-309
refactored XPath selectors and routers
added support for Node payloads
2008-09-30 09:20:06 +00:00
Mark Fisher
8cea74f062 Using Asserts with IllegalArgumentException/IllegalStateException instead of ConfigurationException. 2008-09-30 03:44:40 +00:00
Mark Fisher
590d346f08 Simplified router hierarchy and only implementing ChannelRegistryAware for routers that resolve channel names. 2008-09-29 20:59:17 +00:00
Mark Fisher
0c35a1781e Simplified RecipientListChannelResolver. It now requires a List of MessageChannel instances rather than also allowing channel names. 2008-09-29 20:01:26 +00:00
Mark Fisher
a7dcd5f31f Removed DefaultChannelRegistry, and add TestChannelRegistry (for tests only). 2008-09-29 18:48:29 +00:00
Mark Fisher
4954228395 Removed the 'unregisterChannel' method from ChannelRegistry. DefaultMessageBus now implements ChannelRegistry directly (no longer delegates to DefaultChannelRegistry). 2008-09-29 18:37:26 +00:00
Jonas Partner
f0d6a78c0c Added comment to indicate that this class is thread safe 2008-09-29 16:36:35 +00:00
Jonas Partner
d03bb7ae5a OPEN - issue INT-309: XPath Message Selector
Added XPAth MessageSelector namespace to follow
2008-09-29 16:07:44 +00:00
Mark Fisher
039679b173 Using Asserts with IllegalArgumentException/IllegalStateException instead of ConfigurationException. 2008-09-29 15:06:27 +00:00
Jonas Partner
6cda0b8e7c Added support for String payloads to XPath Routers 2008-09-29 14:26:02 +00:00
Mark Fisher
1f0cf0fcf2 Using Asserts with IllegalArgumentException/IllegalStateException instead of ConfigurationException. 2008-09-29 14:24:56 +00:00
Mark Fisher
c78e7e67ad Using Asserts with IllegalArgumentException/IllegalStateException instead of ConfigurationException. 2008-09-29 13:49:47 +00:00
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