camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cmoulli...@apache.org
Subject [33/50] git commit: Fixed build error of RestletHeaderFilterStrategy
Date Fri, 17 Oct 2014 08:40:26 GMT
Fixed build error of RestletHeaderFilterStrategy


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

Branch: refs/remotes/origin/camel-2.13.x
Commit: b23ab8b5958db102f8621172b46015c59e8c147e
Parents: e737849
Author: Willem Jiang <willem.jiang@gmail.com>
Authored: Tue Sep 30 13:29:04 2014 +0800
Committer: Willem Jiang <willem.jiang@gmail.com>
Committed: Tue Sep 30 13:29:04 2014 +0800

----------------------------------------------------------------------
 .../restlet/RestletHeaderFilterStrategy.java    | 23 ++++++++++----------
 1 file changed, 12 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/b23ab8b5/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/RestletHeaderFilterStrategy.java
----------------------------------------------------------------------
diff --git a/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/RestletHeaderFilterStrategy.java
b/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/RestletHeaderFilterStrategy.java
index 662328c..d2f727d 100644
--- a/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/RestletHeaderFilterStrategy.java
+++ b/components/camel-restlet/src/main/java/org/apache/camel/component/restlet/RestletHeaderFilterStrategy.java
@@ -21,27 +21,28 @@ import org.apache.camel.impl.DefaultHeaderFilterStrategy;
 
 /**
  * Default header filtering strategy for Restlet
- * 
- * @version 
+ *
+ * @version
  */
 public class RestletHeaderFilterStrategy extends DefaultHeaderFilterStrategy {
 
     public RestletHeaderFilterStrategy() {
         // No IN filters and copy all headers from Restlet to Camel
-        
+
         // OUT filters (from Camel headers to Restlet headers)
         // filter headers used internally by this component
-        getOutFilter().add(RestletConstants.RESTLET_LOGIN);
-        getOutFilter().add(RestletConstants.RESTLET_PASSWORD);
-        
-        // The "CamelAcceptContentType" header is not added to the outgoing HTTP 
+        getOutFilter().add(RestletConstants.RESTLET_LOGIN.toLowerCase());
+        getOutFilter().add(RestletConstants.RESTLET_PASSWORD.toLowerCase());
+
+        // The "CamelAcceptContentType" header is not added to the outgoing HTTP
         // headers but it will be going out as "Accept.
-        getOutFilter().add(Exchange.ACCEPT_CONTENT_TYPE);
-        
+        getOutFilter().add(Exchange.ACCEPT_CONTENT_TYPE.toLowerCase());
+
         // As we don't set the transfer_encoding protocol header for the restlet service
         // we need to remove the transfer_encoding which could let the client wait forever
-        getOutFilter().add(Exchange.TRANSFER_ENCODING);
-        setCaseInsensitive(true);
+        getOutFilter().add(Exchange.TRANSFER_ENCODING.toLowerCase());
+        // Support to filter case insensitive
+        setLowerCase(true);
     }
 
 }


Mime
View raw message