You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2011/09/28 10:23:35 UTC

svn commit: r1176781 - /camel/trunk/components/camel-http/src/main/java/org/apache/camel/component/http/HttpPollingConsumer.java

Author: ningjiang
Date: Wed Sep 28 08:23:35 2011
New Revision: 1176781

URL: http://svn.apache.org/viewvc?rev=1176781&view=rev
Log:
CAMEL-4497 HttpPollingConsumer Get URL should support the property place holders as HttpProducer does

Modified:
    camel/trunk/components/camel-http/src/main/java/org/apache/camel/component/http/HttpPollingConsumer.java

Modified: camel/trunk/components/camel-http/src/main/java/org/apache/camel/component/http/HttpPollingConsumer.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-http/src/main/java/org/apache/camel/component/http/HttpPollingConsumer.java?rev=1176781&r1=1176780&r2=1176781&view=diff
==============================================================================
--- camel/trunk/components/camel-http/src/main/java/org/apache/camel/component/http/HttpPollingConsumer.java (original)
+++ camel/trunk/components/camel-http/src/main/java/org/apache/camel/component/http/HttpPollingConsumer.java Wed Sep 28 08:23:35 2011
@@ -58,7 +58,7 @@ public class HttpPollingConsumer extends
 
     protected Exchange doReceive(int timeout) {
         Exchange exchange = endpoint.createExchange();
-        HttpMethod method = createMethod();
+        HttpMethod method = createMethod(exchange);
 
         // set optional timeout in millis
         if (timeout > 0) {
@@ -111,8 +111,8 @@ public class HttpPollingConsumer extends
 
     // Implementation methods
     //-------------------------------------------------------------------------
-    protected HttpMethod createMethod() {
-        String uri = endpoint.getEndpointUri();
+    protected HttpMethod createMethod(Exchange exchange) {
+        String uri = HttpHelper.createURL(exchange, endpoint);
         return new GetMethod(uri);
     }