Package org.springframework.integration

Examples of org.springframework.integration.IntegrationMessageHeaderAccessor


    Matcher<Message<?>> fooMatcher = new CustomMatcher<Message<?>>("the message with 'foo' as its correlationId") {

      @Override
      public boolean matches(Object item) {
        IntegrationMessageHeaderAccessor accessor = new IntegrationMessageHeaderAccessor((Message<?>) item);
        boolean result = "foo".equals(accessor.getCorrelationId()) &&
            42 == accessor.getSequenceNumber() &&
            43 == accessor.getSequenceSize() &&
            "bar".equals(accessor.getHeader("xdReplyChannel"));
        return result;
      }
    };

    if (usesExplicitRouting()) {
View Full Code Here

TOP

Related Classes of org.springframework.integration.IntegrationMessageHeaderAccessor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.