You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2014/09/28 05:01:41 UTC
[2/2] git commit: CAMEL-7856 Fixed the test error with JDK7
CAMEL-7856 Fixed the test error with JDK7
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/daeb5595
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/daeb5595
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/daeb5595
Branch: refs/heads/camel-2.12.x
Commit: daeb5595b0d588b9a8231c0f232adaaa124bd38d
Parents: 01136bf
Author: Willem Jiang <wi...@gmail.com>
Authored: Sun Sep 28 10:59:39 2014 +0800
Committer: Willem Jiang <wi...@gmail.com>
Committed: Sun Sep 28 11:01:16 2014 +0800
----------------------------------------------------------------------
.../org/apache/camel/component/cxf/jaxrs/CxfRsEndpoint.java | 4 ++--
.../org/apache/camel/component/cxf/jaxrs/CxfRsSpringRouter.xml | 4 ++--
.../camel/component/cxf/jaxrs/JettyCxfRsSpringRouter.xml | 6 +-----
3 files changed, 5 insertions(+), 9 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/daeb5595/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/CxfRsEndpoint.java
----------------------------------------------------------------------
diff --git a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/CxfRsEndpoint.java b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/CxfRsEndpoint.java
index cd84fb2..f56bca8 100644
--- a/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/CxfRsEndpoint.java
+++ b/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/jaxrs/CxfRsEndpoint.java
@@ -394,8 +394,8 @@ public class CxfRsEndpoint extends DefaultEndpoint implements HeaderFilterStrate
return ignoreDeleteMethodMessageBody;
}
- public void setIgnoreDELETEMethodMessageBody(boolean ignoreDELETEMethodMessageBody) {
- this.ignoreDeleteMethodMessageBody = ignoreDELETEMethodMessageBody;
+ public void setIgnoreDeleteMethodMessageBody(boolean ignoreDeleteMethodMessageBody) {
+ this.ignoreDeleteMethodMessageBody = ignoreDeleteMethodMessageBody;
}
public BindingStyle getBindingStyle() {
http://git-wip-us.apache.org/repos/asf/camel/blob/daeb5595/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/jaxrs/CxfRsSpringRouter.xml
----------------------------------------------------------------------
diff --git a/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/jaxrs/CxfRsSpringRouter.xml b/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/jaxrs/CxfRsSpringRouter.xml
index 8661382..b829898 100644
--- a/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/jaxrs/CxfRsSpringRouter.xml
+++ b/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/jaxrs/CxfRsSpringRouter.xml
@@ -56,9 +56,9 @@
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
<route>
<!-- Just need to ignoreDeleteMethodMessageBody -->
- <from uri="cxfrs://bean://rsServer?ignoreDeleteMethodMessageBody=true"/>
+ <from uri="cxfrs://bean://rsServer"/>
<to uri="log:body?level=INFO"/>
- <to uri="cxfrs://bean://rsClient"/>
+ <to uri="cxfrs://bean://rsClient?ignoreDeleteMethodMessageBody=true"/>
</route>
</camelContext>
http://git-wip-us.apache.org/repos/asf/camel/blob/daeb5595/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/jaxrs/JettyCxfRsSpringRouter.xml
----------------------------------------------------------------------
diff --git a/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/jaxrs/JettyCxfRsSpringRouter.xml b/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/jaxrs/JettyCxfRsSpringRouter.xml
index 074bf89..0a2adce 100644
--- a/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/jaxrs/JettyCxfRsSpringRouter.xml
+++ b/components/camel-cxf/src/test/resources/org/apache/camel/component/cxf/jaxrs/JettyCxfRsSpringRouter.xml
@@ -52,11 +52,7 @@
<route>
<!-- Jetty server can be used to proxy the request to cxfrs client -->
<from uri="jetty://http://localhost:{{CXFTestSupport.port5}}/CxfRsRouterTest/route?matchOnUriPrefix=true&bridgeEndpoint=true"/>
- <!-- We can remove this configure as the CXFRS producer is using the HttpAPI by default -->
- <setHeader headerName="CamelCxfRsUsingHttpAPI">
- <constant>True</constant>
- </setHeader>
- <to uri="cxfrs://bean://rsClient"/>
+ <to uri="cxfrs://bean://rsClient?ignoreDeleteMethodMessageBody=true"/>
</route>
</camelContext>