Repository: camel Updated Branches: refs/heads/camel-2.13.x e737849d8 -> b9ca47981 refs/heads/camel-2.14.x 3cac0a741 -> 16f840841
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/heads/camel-2.13.x Commit: b23ab8b5958db102f8621172b46015c59e8c147e Parents: e737849 Author: Willem Jiang <willem.ji...@gmail.com> Authored: Tue Sep 30 13:29:04 2014 +0800 Committer: Willem Jiang <willem.ji...@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); } }