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 2016/02/13 13:23:09 UTC

[1/4] camel git commit: Polished

Repository: camel
Updated Branches:
  refs/heads/camel-2.16.x 58ed16133 -> d59cac1d4
  refs/heads/master edb286013 -> e44192e95


Polished


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

Branch: refs/heads/master
Commit: 2b1ca826bc83ec9b36d18f678e3359e34ea017ba
Parents: edb2860
Author: Claus Ibsen <da...@apache.org>
Authored: Sat Feb 13 13:03:56 2016 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Sat Feb 13 13:03:56 2016 +0100

----------------------------------------------------------------------
 .../java/org/apache/camel/http/common/HttpCommonEndpoint.java  | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/2b1ca826/components/camel-http-common/src/main/java/org/apache/camel/http/common/HttpCommonEndpoint.java
----------------------------------------------------------------------
diff --git a/components/camel-http-common/src/main/java/org/apache/camel/http/common/HttpCommonEndpoint.java b/components/camel-http-common/src/main/java/org/apache/camel/http/common/HttpCommonEndpoint.java
index 96503e7..2ab2d07 100644
--- a/components/camel-http-common/src/main/java/org/apache/camel/http/common/HttpCommonEndpoint.java
+++ b/components/camel-http-common/src/main/java/org/apache/camel/http/common/HttpCommonEndpoint.java
@@ -140,11 +140,17 @@ public abstract class HttpCommonEndpoint extends DefaultEndpoint implements Head
     // Properties
     //-------------------------------------------------------------------------
 
+    /**
+     * @deprecated use {@link #getHttpBinding()}
+     */
     @Deprecated
     public HttpBinding getBinding() {
         return httpBinding;
     }
 
+    /**
+     * @deprecated use {@link #setHttpBinding(HttpBinding)}
+     */
     @Deprecated
     public void setBinding(HttpBinding httpBinding) {
         setHttpBinding(httpBinding);


[3/4] camel git commit: Polished

Posted by da...@apache.org.
Polished


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

Branch: refs/heads/camel-2.16.x
Commit: 3f25826b1871c3a8c491141721a5d4225b203e05
Parents: 58ed161
Author: Claus Ibsen <da...@apache.org>
Authored: Sat Feb 13 13:03:56 2016 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Sat Feb 13 13:22:54 2016 +0100

----------------------------------------------------------------------
 .../java/org/apache/camel/http/common/HttpCommonEndpoint.java  | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/3f25826b/components/camel-http-common/src/main/java/org/apache/camel/http/common/HttpCommonEndpoint.java
----------------------------------------------------------------------
diff --git a/components/camel-http-common/src/main/java/org/apache/camel/http/common/HttpCommonEndpoint.java b/components/camel-http-common/src/main/java/org/apache/camel/http/common/HttpCommonEndpoint.java
index 2856c48..8c1ee9c 100644
--- a/components/camel-http-common/src/main/java/org/apache/camel/http/common/HttpCommonEndpoint.java
+++ b/components/camel-http-common/src/main/java/org/apache/camel/http/common/HttpCommonEndpoint.java
@@ -138,11 +138,17 @@ public abstract class HttpCommonEndpoint extends DefaultEndpoint implements Head
     // Properties
     //-------------------------------------------------------------------------
 
+    /**
+     * @deprecated use {@link #getHttpBinding()}
+     */
     @Deprecated
     public HttpBinding getBinding() {
         return httpBinding;
     }
 
+    /**
+     * @deprecated use {@link #setHttpBinding(HttpBinding)}
+     */
     @Deprecated
     public void setBinding(HttpBinding httpBinding) {
         setHttpBinding(httpBinding);


[4/4] camel git commit: CAMEL-9596: rest-dsl with jetty. Allow to use custom http binding

Posted by da...@apache.org.
CAMEL-9596: rest-dsl with jetty. Allow to use custom http binding


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

Branch: refs/heads/camel-2.16.x
Commit: d59cac1d4aa6410637d76c823bcbf71757ac1bb4
Parents: 3f25826
Author: Claus Ibsen <da...@apache.org>
Authored: Sat Feb 13 13:22:20 2016 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Sat Feb 13 13:23:00 2016 +0100

----------------------------------------------------------------------
 .../component/jetty/JettyHttpComponent.java     | 10 +--
 .../jetty/rest/MyCustomHttpBinding.java         | 39 ++++++++++++
 .../rest/RestJettyGetCustomHttpBindingTest.java | 64 ++++++++++++++++++++
 .../component/jetty/rest/RestJettyGetTest.java  | 12 +---
 4 files changed, 110 insertions(+), 15 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/d59cac1d/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 adeb3c8..c64513e 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
@@ -1069,10 +1069,12 @@ public abstract class JettyHttpComponent extends HttpCommonComponent implements
         JettyHttpEndpoint endpoint = camelContext.getEndpoint(url, JettyHttpEndpoint.class);
         setProperties(endpoint, parameters);
 
-        // disable this filter as we want to use ours
-        endpoint.setEnableMultipartFilter(false);
-        // use the rest binding
-        endpoint.setBinding(new JettyRestHttpBinding(endpoint));
+        if (!map.containsKey("httpBindingRef")) {
+            // use the rest binding, if not using a custom http binding
+            endpoint.setHttpBinding(new JettyRestHttpBinding(endpoint));
+            // disable this filter as we want to use ours
+            endpoint.setEnableMultipartFilter(false);
+        }
 
         // configure consumer properties
         Consumer consumer = endpoint.createConsumer(processor);

http://git-wip-us.apache.org/repos/asf/camel/blob/d59cac1d/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/rest/MyCustomHttpBinding.java
----------------------------------------------------------------------
diff --git a/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/rest/MyCustomHttpBinding.java b/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/rest/MyCustomHttpBinding.java
new file mode 100644
index 0000000..89d317a
--- /dev/null
+++ b/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/rest/MyCustomHttpBinding.java
@@ -0,0 +1,39 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.jetty.rest;
+
+import java.io.IOException;
+import javax.servlet.http.HttpServletResponse;
+
+import org.apache.camel.Exchange;
+import org.apache.camel.Message;
+import org.apache.camel.component.jetty.JettyRestHttpBinding;
+
+public class MyCustomHttpBinding extends JettyRestHttpBinding {
+
+    private String greeting;
+
+    public MyCustomHttpBinding(String greeting) {
+        this.greeting = greeting;
+    }
+
+    @Override
+    public void doWriteResponse(Message message, HttpServletResponse response, Exchange exchange) throws IOException {
+        message.setBody(greeting + message.getBody());
+        super.doWriteResponse(message, response, exchange);
+    }
+}

http://git-wip-us.apache.org/repos/asf/camel/blob/d59cac1d/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/rest/RestJettyGetCustomHttpBindingTest.java
----------------------------------------------------------------------
diff --git a/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/rest/RestJettyGetCustomHttpBindingTest.java b/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/rest/RestJettyGetCustomHttpBindingTest.java
new file mode 100644
index 0000000..ef6b68b
--- /dev/null
+++ b/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/rest/RestJettyGetCustomHttpBindingTest.java
@@ -0,0 +1,64 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.jetty.rest;
+
+import org.apache.camel.Exchange;
+import org.apache.camel.Processor;
+import org.apache.camel.builder.RouteBuilder;
+import org.apache.camel.component.jetty.BaseJettyTest;
+import org.apache.camel.impl.JndiRegistry;
+import org.junit.Test;
+
+public class RestJettyGetCustomHttpBindingTest extends BaseJettyTest {
+
+    @Override
+    protected JndiRegistry createRegistry() throws Exception {
+        JndiRegistry jndi = super.createRegistry();
+        jndi.bind("mybinding", new MyCustomHttpBinding("I was here;"));
+        return jndi;
+    }
+
+    @Test
+    public void testJettyProducerGet() throws Exception {
+        String out = template.requestBody("http://localhost:" + getPort() + "/users/123/basic", null, String.class);
+        assertEquals("I was here;123;Donald Duck", out);
+    }
+
+    @Override
+    protected RouteBuilder createRouteBuilder() throws Exception {
+        return new RouteBuilder() {
+            @Override
+            public void configure() throws Exception {
+                // configure to use jetty on localhost with the given port
+                restConfiguration().component("jetty").host("localhost").port(getPort()).endpointProperty("httpBindingRef", "#mybinding");
+
+                // use the rest DSL to define the rest services
+                rest("/users/")
+                        .get("{id}/basic")
+                        .route()
+                        .to("mock:input")
+                        .process(new Processor() {
+                            public void process(Exchange exchange) throws Exception {
+                                String id = exchange.getIn().getHeader("id", String.class);
+                                exchange.getOut().setBody(id + ";Donald Duck");
+                            }
+                        });
+            }
+        };
+    }
+
+}

http://git-wip-us.apache.org/repos/asf/camel/blob/d59cac1d/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/rest/RestJettyGetTest.java
----------------------------------------------------------------------
diff --git a/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/rest/RestJettyGetTest.java b/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/rest/RestJettyGetTest.java
index 5022681..04a26e2 100644
--- a/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/rest/RestJettyGetTest.java
+++ b/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/rest/RestJettyGetTest.java
@@ -20,20 +20,10 @@ import org.apache.camel.Exchange;
 import org.apache.camel.Processor;
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.component.jetty.BaseJettyTest;
-import org.apache.camel.component.jetty.JettyRestHttpBinding;
-import org.apache.camel.impl.JndiRegistry;
 import org.junit.Test;
 
 public class RestJettyGetTest extends BaseJettyTest {
     
-
-    @Override
-    protected JndiRegistry createRegistry() throws Exception {
-        JndiRegistry jndi = super.createRegistry();
-        jndi.bind("mybinding", new JettyRestHttpBinding());
-        return jndi;
-    }
-
     @Test
     public void testJettyProducerGet() throws Exception {
         String out = template.requestBody("http://localhost:" + getPort() + "/users/123/basic", null, String.class);
@@ -46,7 +36,7 @@ public class RestJettyGetTest extends BaseJettyTest {
             @Override
             public void configure() throws Exception {
                 // configure to use jetty on localhost with the given port
-                restConfiguration().component("jetty").host("localhost").port(getPort()).endpointProperty("httpBindingRef", "#mybinding");
+                restConfiguration().component("jetty").host("localhost").port(getPort());
 
                 // use the rest DSL to define the rest services
                 rest("/users/")


[2/4] camel git commit: CAMEL-9596: rest-dsl with jetty. Allow to use custom http binding

Posted by da...@apache.org.
CAMEL-9596: rest-dsl with jetty. Allow to use custom http binding


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

Branch: refs/heads/master
Commit: e44192e95b2259104214e65d223a4f0c188eb130
Parents: 2b1ca82
Author: Claus Ibsen <da...@apache.org>
Authored: Sat Feb 13 13:22:20 2016 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Sat Feb 13 13:22:20 2016 +0100

----------------------------------------------------------------------
 .../component/jetty/JettyHttpComponent.java     | 10 +--
 .../jetty/rest/MyCustomHttpBinding.java         | 39 ++++++++++++
 .../rest/RestJettyGetCustomHttpBindingTest.java | 64 ++++++++++++++++++++
 .../component/jetty/rest/RestJettyGetTest.java  | 12 +---
 4 files changed, 110 insertions(+), 15 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/e44192e9/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 2b90a9d..ca6afc0 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
@@ -1069,10 +1069,12 @@ public abstract class JettyHttpComponent extends HttpCommonComponent implements
         JettyHttpEndpoint endpoint = camelContext.getEndpoint(url, JettyHttpEndpoint.class);
         setProperties(endpoint, parameters);
 
-        // disable this filter as we want to use ours
-        endpoint.setEnableMultipartFilter(false);
-        // use the rest binding
-        endpoint.setBinding(new JettyRestHttpBinding(endpoint));
+        if (!map.containsKey("httpBindingRef")) {
+            // use the rest binding, if not using a custom http binding
+            endpoint.setHttpBinding(new JettyRestHttpBinding(endpoint));
+            // disable this filter as we want to use ours
+            endpoint.setEnableMultipartFilter(false);
+        }
 
         // configure consumer properties
         Consumer consumer = endpoint.createConsumer(processor);

http://git-wip-us.apache.org/repos/asf/camel/blob/e44192e9/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/rest/MyCustomHttpBinding.java
----------------------------------------------------------------------
diff --git a/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/rest/MyCustomHttpBinding.java b/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/rest/MyCustomHttpBinding.java
new file mode 100644
index 0000000..89d317a
--- /dev/null
+++ b/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/rest/MyCustomHttpBinding.java
@@ -0,0 +1,39 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.jetty.rest;
+
+import java.io.IOException;
+import javax.servlet.http.HttpServletResponse;
+
+import org.apache.camel.Exchange;
+import org.apache.camel.Message;
+import org.apache.camel.component.jetty.JettyRestHttpBinding;
+
+public class MyCustomHttpBinding extends JettyRestHttpBinding {
+
+    private String greeting;
+
+    public MyCustomHttpBinding(String greeting) {
+        this.greeting = greeting;
+    }
+
+    @Override
+    public void doWriteResponse(Message message, HttpServletResponse response, Exchange exchange) throws IOException {
+        message.setBody(greeting + message.getBody());
+        super.doWriteResponse(message, response, exchange);
+    }
+}

http://git-wip-us.apache.org/repos/asf/camel/blob/e44192e9/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/rest/RestJettyGetCustomHttpBindingTest.java
----------------------------------------------------------------------
diff --git a/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/rest/RestJettyGetCustomHttpBindingTest.java b/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/rest/RestJettyGetCustomHttpBindingTest.java
new file mode 100644
index 0000000..ef6b68b
--- /dev/null
+++ b/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/rest/RestJettyGetCustomHttpBindingTest.java
@@ -0,0 +1,64 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.jetty.rest;
+
+import org.apache.camel.Exchange;
+import org.apache.camel.Processor;
+import org.apache.camel.builder.RouteBuilder;
+import org.apache.camel.component.jetty.BaseJettyTest;
+import org.apache.camel.impl.JndiRegistry;
+import org.junit.Test;
+
+public class RestJettyGetCustomHttpBindingTest extends BaseJettyTest {
+
+    @Override
+    protected JndiRegistry createRegistry() throws Exception {
+        JndiRegistry jndi = super.createRegistry();
+        jndi.bind("mybinding", new MyCustomHttpBinding("I was here;"));
+        return jndi;
+    }
+
+    @Test
+    public void testJettyProducerGet() throws Exception {
+        String out = template.requestBody("http://localhost:" + getPort() + "/users/123/basic", null, String.class);
+        assertEquals("I was here;123;Donald Duck", out);
+    }
+
+    @Override
+    protected RouteBuilder createRouteBuilder() throws Exception {
+        return new RouteBuilder() {
+            @Override
+            public void configure() throws Exception {
+                // configure to use jetty on localhost with the given port
+                restConfiguration().component("jetty").host("localhost").port(getPort()).endpointProperty("httpBindingRef", "#mybinding");
+
+                // use the rest DSL to define the rest services
+                rest("/users/")
+                        .get("{id}/basic")
+                        .route()
+                        .to("mock:input")
+                        .process(new Processor() {
+                            public void process(Exchange exchange) throws Exception {
+                                String id = exchange.getIn().getHeader("id", String.class);
+                                exchange.getOut().setBody(id + ";Donald Duck");
+                            }
+                        });
+            }
+        };
+    }
+
+}

http://git-wip-us.apache.org/repos/asf/camel/blob/e44192e9/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/rest/RestJettyGetTest.java
----------------------------------------------------------------------
diff --git a/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/rest/RestJettyGetTest.java b/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/rest/RestJettyGetTest.java
index 5022681..04a26e2 100644
--- a/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/rest/RestJettyGetTest.java
+++ b/components/camel-jetty9/src/test/java/org/apache/camel/component/jetty/rest/RestJettyGetTest.java
@@ -20,20 +20,10 @@ import org.apache.camel.Exchange;
 import org.apache.camel.Processor;
 import org.apache.camel.builder.RouteBuilder;
 import org.apache.camel.component.jetty.BaseJettyTest;
-import org.apache.camel.component.jetty.JettyRestHttpBinding;
-import org.apache.camel.impl.JndiRegistry;
 import org.junit.Test;
 
 public class RestJettyGetTest extends BaseJettyTest {
     
-
-    @Override
-    protected JndiRegistry createRegistry() throws Exception {
-        JndiRegistry jndi = super.createRegistry();
-        jndi.bind("mybinding", new JettyRestHttpBinding());
-        return jndi;
-    }
-
     @Test
     public void testJettyProducerGet() throws Exception {
         String out = template.requestBody("http://localhost:" + getPort() + "/users/123/basic", null, String.class);
@@ -46,7 +36,7 @@ public class RestJettyGetTest extends BaseJettyTest {
             @Override
             public void configure() throws Exception {
                 // configure to use jetty on localhost with the given port
-                restConfiguration().component("jetty").host("localhost").port(getPort()).endpointProperty("httpBindingRef", "#mybinding");
+                restConfiguration().component("jetty").host("localhost").port(getPort());
 
                 // use the rest DSL to define the rest services
                 rest("/users/")