camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r933128 - in /camel/trunk/components/camel-http: ./ src/test/java/org/apache/camel/component/http/helper/HttpProducerHelperTest.java
Date Mon, 12 Apr 2010 07:50:02 GMT
Author: ningjiang
Date: Mon Apr 12 07:50:02 2010
New Revision: 933128

URL: http://svn.apache.org/viewvc?rev=933128&view=rev
Log:
CAMEL-2634 merged the revision 917526 into camel-http

Modified:
    camel/trunk/components/camel-http/   (props changed)
    camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/helper/HttpProducerHelperTest.java

Propchange: camel/trunk/components/camel-http/
------------------------------------------------------------------------------
    svn:mergeinfo = /camel/trunk/components/camel-http:917526

Modified: camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/helper/HttpProducerHelperTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/helper/HttpProducerHelperTest.java?rev=933128&r1=933127&r2=933128&view=diff
==============================================================================
--- camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/helper/HttpProducerHelperTest.java
(original)
+++ camel/trunk/components/camel-http/src/test/java/org/apache/camel/component/http/helper/HttpProducerHelperTest.java
Mon Apr 12 07:50:02 2010
@@ -132,24 +132,24 @@ public class HttpProducerHelperTest {
         Exchange exchange = new DefaultExchange(context);
         Message inMsg = exchange.getIn();
         if (httpQuery != null) {
-            inMsg.setHeader("CamelHttpQuery", httpQuery);
+            inMsg.setHeader(Exchange.HTTP_QUERY, httpQuery);
         }
         if (httpMethod != null) {
-            inMsg.setHeader("CamelHttpMethod", httpMethod);
+            inMsg.setHeader(Exchange.HTTP_METHOD, httpMethod);
         }
 
         return exchange;
     }
 
-    private Exchange createExchangeWithOptionalCamelHttpUriHeader(String endpointURI, String
httpPath) {
+    private Exchange createExchangeWithOptionalCamelHttpUriHeader(String endpointURI, String
httpPath) throws URISyntaxException {
         CamelContext context = new DefaultCamelContext();
-        Exchange exchange = new DefaultExchange(context);
+        DefaultExchange exchange = new DefaultExchange(context);
         Message inMsg = exchange.getIn();
         if (endpointURI != null) {
-            inMsg.setHeader("CamelHttpUri", endpointURI);
+            inMsg.setHeader(Exchange.HTTP_URI, endpointURI);
         }
         if (httpPath != null) {
-            inMsg.setHeader("CamelHttpPath", httpPath);
+            inMsg.setHeader(Exchange.HTTP_PATH, httpPath);
         }
 
         return exchange;



Mime
View raw message