camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject camel git commit: CAMEL-9059: Jetty exposes its endpoint without component name
Date Thu, 06 Aug 2015 13:25:11 GMT
Repository: camel
Updated Branches:
  refs/heads/master c9a5fe8e9 -> a5165015c


CAMEL-9059: Jetty exposes its endpoint without component name


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

Branch: refs/heads/master
Commit: a5165015cb6e239989e37d7e03bbbd5327e9075c
Parents: c9a5fe8
Author: Claus Ibsen <davsclaus@apache.org>
Authored: Thu Aug 6 15:27:51 2015 +0200
Committer: Claus Ibsen <davsclaus@apache.org>
Committed: Thu Aug 6 15:27:51 2015 +0200

----------------------------------------------------------------------
 .../org/apache/camel/component/jetty/JettyHttpComponent.java | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/a5165015/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java
----------------------------------------------------------------------
diff --git a/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java
b/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java
index 94b58d7..dafc0f7 100644
--- a/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java
+++ b/components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java
@@ -198,9 +198,13 @@ public abstract class JettyHttpComponent extends HttpCommonComponent
implements
         // restructure uri to be based on the parameters left as we dont want to include
the Camel internal options
         URI httpUri = URISupport.createRemainingURI(addressUri, parameters);
         // create endpoint after all known parameters have been extracted from parameters
+
+        // include component scheme in the uri
+        String scheme = ObjectHelper.before(uri, ":");
+        endpointUri = new URI(scheme + ":" + endpointUri);
+
         JettyHttpEndpoint endpoint = createEndpoint(endpointUri, httpUri);
-        
-        
+
         if (headerFilterStrategy != null) {
             endpoint.setHeaderFilterStrategy(headerFilterStrategy);
         } else {


Mime
View raw message