hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r450187 - in /jakarta/httpcomponents/httpcore/trunk/src/contrib/org/apache/http/contrib: benchmark/BenchmarkWorker.java spring/http-beans.xml
Date Tue, 26 Sep 2006 20:34:28 GMT
Author: olegk
Date: Tue Sep 26 13:34:27 2006
New Revision: 450187

URL: http://svn.apache.org/viewvc?view=rev&rev=450187
Log:
Fixed breakage in the SpringHttpDemo caused by the latest API changes

Modified:
    jakarta/httpcomponents/httpcore/trunk/src/contrib/org/apache/http/contrib/benchmark/BenchmarkWorker.java
    jakarta/httpcomponents/httpcore/trunk/src/contrib/org/apache/http/contrib/spring/http-beans.xml

Modified: jakarta/httpcomponents/httpcore/trunk/src/contrib/org/apache/http/contrib/benchmark/BenchmarkWorker.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpcore/trunk/src/contrib/org/apache/http/contrib/benchmark/BenchmarkWorker.java?view=diff&rev=450187&r1=450186&r2=450187
==============================================================================
--- jakarta/httpcomponents/httpcore/trunk/src/contrib/org/apache/http/contrib/benchmark/BenchmarkWorker.java
(original)
+++ jakarta/httpcomponents/httpcore/trunk/src/contrib/org/apache/http/contrib/benchmark/BenchmarkWorker.java
Tue Sep 26 13:34:27 2006
@@ -42,9 +42,9 @@
 import org.apache.http.HttpResponse;
 import org.apache.http.impl.DefaultConnectionReuseStrategy;
 import org.apache.http.impl.DefaultHttpClientConnection;
-import org.apache.http.impl.protocol.DefaultHttpProcessor;
 import org.apache.http.io.SocketFactory;
 import org.apache.http.params.HttpParams;
+import org.apache.http.protocol.BasicHttpProcessor;
 import org.apache.http.protocol.HTTP;
 import org.apache.http.protocol.HttpContext;
 import org.apache.http.protocol.HttpExecutionContext;
@@ -81,7 +81,7 @@
         this.params = params;
         this.context = new HttpExecutionContext(null);
 
-        DefaultHttpProcessor httpproc = new DefaultHttpProcessor();
+        BasicHttpProcessor httpproc = new BasicHttpProcessor();
         this.httpexecutor = new HttpRequestExecutor(httpproc);
         this.httpexecutor.setParams(params);
 

Modified: jakarta/httpcomponents/httpcore/trunk/src/contrib/org/apache/http/contrib/spring/http-beans.xml
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpcore/trunk/src/contrib/org/apache/http/contrib/spring/http-beans.xml?view=diff&rev=450187&r1=450186&r2=450187
==============================================================================
--- jakarta/httpcomponents/httpcore/trunk/src/contrib/org/apache/http/contrib/spring/http-beans.xml
(original)
+++ jakarta/httpcomponents/httpcore/trunk/src/contrib/org/apache/http/contrib/spring/http-beans.xml
Tue Sep 26 13:34:27 2006
@@ -24,8 +24,8 @@
     <constructor-arg index="2"><value>80</value></constructor-arg>
   </bean>
   
-  <bean id="http-executor" 
-    class="org.apache.http.protocol.HttpRequestExecutor" 
+  <bean id="http-processor" 
+    class="org.apache.http.protocol.BasicHttpProcessor" 
     singleton="true" >
     <property name="interceptors">
       <list>
@@ -38,6 +38,12 @@
         <bean class="org.apache.http.protocol.RequestExpectContinue" />
       </list>
     </property>
+  </bean>
+  
+  <bean id="http-executor" 
+    class="org.apache.http.protocol.HttpRequestExecutor" 
+    singleton="true" >
+    <constructor-arg index="0"><ref bean="http-processor"/></constructor-arg>
   </bean>
   
   <bean id="http-request-factory"



Mime
View raw message