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 2015/07/19 10:15:44 UTC

[2/2] camel git commit: CAMEL-7152: Polished

CAMEL-7152: Polished


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/e21187e8
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/e21187e8
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/e21187e8

Branch: refs/heads/master
Commit: e21187e8266aa2910c1273a08b5775308b4beedf
Parents: f850321
Author: Claus Ibsen <da...@apache.org>
Authored: Sun Jul 19 10:19:50 2015 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Sun Jul 19 10:20:58 2015 +0200

----------------------------------------------------------------------
 .../java/org/apache/camel/component/http/HttpEndpoint.java   | 8 +++++---
 .../java/org/apache/camel/component/http4/HttpEndpoint.java  | 1 +
 2 files changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/e21187e8/components/camel-http/src/main/java/org/apache/camel/component/http/HttpEndpoint.java
----------------------------------------------------------------------
diff --git a/components/camel-http/src/main/java/org/apache/camel/component/http/HttpEndpoint.java b/components/camel-http/src/main/java/org/apache/camel/component/http/HttpEndpoint.java
index bcf6cb6..a31ec23 100644
--- a/components/camel-http/src/main/java/org/apache/camel/component/http/HttpEndpoint.java
+++ b/components/camel-http/src/main/java/org/apache/camel/component/http/HttpEndpoint.java
@@ -110,9 +110,9 @@ public class HttpEndpoint extends DefaultEndpoint implements HeaderFilterStrateg
     @UriParam(label = "producer",
             description = "If this option is true, The http producer won't read response body and cache the input stream")
     private boolean ignoreResponseBody;
-    @UriParam(defaultValue = "true",
-            description = "If this option is true then IN exchange headers will be copied to OUT exchange headers"
-                    + " according to copy strategy.")
+    @UriParam(label = "producer", defaultValue = "true",
+            description = "If this option is true then IN exchange headers will be copied to OUT exchange headers according to copy strategy."
+                    + " Setting this to false, allows to only include the headers from the HTTP response (not propagating IN headers).")
     private boolean copyHeaders = true;
     @UriParam(label = "consumer",
             description = "Whether to eager check whether the HTTP requests has content if the content-length header is 0 or not present."
@@ -502,6 +502,7 @@ public class HttpEndpoint extends DefaultEndpoint implements HeaderFilterStrateg
 
     /**
      * If this option is true then IN exchange headers will be copied to OUT exchange headers according to copy strategy.
+     * Setting this to false, allows to only include the headers from the HTTP response (not propagating IN headers).
      */
     public boolean isCopyHeaders() {
         return copyHeaders;
@@ -510,6 +511,7 @@ public class HttpEndpoint extends DefaultEndpoint implements HeaderFilterStrateg
     public void setCopyHeaders(boolean copyHeaders) {
         this.copyHeaders = copyHeaders;
     }
+
     public boolean isEagerCheckContentAvailable() {
         return eagerCheckContentAvailable;
     }

http://git-wip-us.apache.org/repos/asf/camel/blob/e21187e8/components/camel-http4/src/main/java/org/apache/camel/component/http4/HttpEndpoint.java
----------------------------------------------------------------------
diff --git a/components/camel-http4/src/main/java/org/apache/camel/component/http4/HttpEndpoint.java b/components/camel-http4/src/main/java/org/apache/camel/component/http4/HttpEndpoint.java
index 8b10cb8..c2c2c57 100644
--- a/components/camel-http4/src/main/java/org/apache/camel/component/http4/HttpEndpoint.java
+++ b/components/camel-http4/src/main/java/org/apache/camel/component/http4/HttpEndpoint.java
@@ -508,6 +508,7 @@ public class HttpEndpoint extends DefaultEndpoint implements HeaderFilterStrateg
 
     /**
      * If this option is true then IN exchange headers will be copied to OUT exchange headers according to copy strategy.
+     * Setting this to false, allows to only include the headers from the HTTP response (not propagating IN headers).
      */
     public boolean isCopyHeaders() {
         return copyHeaders;