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);
     }
 


Reply via email to