You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2017/02/25 18:53:46 UTC
[2/4] camel git commit: CAMEL-10888 - handling in exchange pattern
CAMEL-10888 - handling in exchange pattern
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/4a1e2ff8
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/4a1e2ff8
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/4a1e2ff8
Branch: refs/heads/master
Commit: 4a1e2ff87eab6615a14a92225eb851b8a7a4c42d
Parents: 81b2e6a
Author: onders86 <on...@gmail.com>
Authored: Fri Feb 24 16:09:57 2017 +0300
Committer: Claus Ibsen <da...@apache.org>
Committed: Sat Feb 25 19:49:25 2017 +0100
----------------------------------------------------------------------
.../camel/component/spring/ws/SpringWebserviceConsumer.java | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/4a1e2ff8/components/camel-spring-ws/src/main/java/org/apache/camel/component/spring/ws/SpringWebserviceConsumer.java
----------------------------------------------------------------------
diff --git a/components/camel-spring-ws/src/main/java/org/apache/camel/component/spring/ws/SpringWebserviceConsumer.java b/components/camel-spring-ws/src/main/java/org/apache/camel/component/spring/ws/SpringWebserviceConsumer.java
index 5d3ebac..dd964bd 100644
--- a/components/camel-spring-ws/src/main/java/org/apache/camel/component/spring/ws/SpringWebserviceConsumer.java
+++ b/components/camel-spring-ws/src/main/java/org/apache/camel/component/spring/ws/SpringWebserviceConsumer.java
@@ -61,10 +61,8 @@ public class SpringWebserviceConsumer extends DefaultConsumer implements Message
Source responseBody = null;
if (exchange.getException() != null) {
throw exchange.getException();
- } else if (exchange.getPattern().isOutCapable()) {
- responseMessage = exchange.getOut(Message.class);
} else {
- responseMessage = exchange.getIn(Message.class);
+ responseMessage = exchange.hasOut() ? exchange.getOut(Message.class) : exchange.getIn(Message.class);
}
if (responseMessage != null) {
responseBody = responseMessage.getBody(Source.class);