hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r373333 - in /jakarta/httpcomponents/trunk/http-core/src/examples/org/apache/http/examples: ElementalHttpGet.java ElementalHttpPost.java ElementalHttpServer.java
Date Sun, 29 Jan 2006 17:55:36 GMT
Author: olegk
Date: Sun Jan 29 09:48:49 2006
New Revision: 373333

URL: http://svn.apache.org/viewcvs?rev=373333&view=rev
Log:
* Changed the protocol interceptor order in ElementalHttpServer demo app
* Minor comment changes

Modified:
    jakarta/httpcomponents/trunk/http-core/src/examples/org/apache/http/examples/ElementalHttpGet.java
    jakarta/httpcomponents/trunk/http-core/src/examples/org/apache/http/examples/ElementalHttpPost.java
    jakarta/httpcomponents/trunk/http-core/src/examples/org/apache/http/examples/ElementalHttpServer.java

Modified: jakarta/httpcomponents/trunk/http-core/src/examples/org/apache/http/examples/ElementalHttpGet.java
URL: http://svn.apache.org/viewcvs/jakarta/httpcomponents/trunk/http-core/src/examples/org/apache/http/examples/ElementalHttpGet.java?rev=373333&r1=373332&r2=373333&view=diff
==============================================================================
--- jakarta/httpcomponents/trunk/http-core/src/examples/org/apache/http/examples/ElementalHttpGet.java
(original)
+++ jakarta/httpcomponents/trunk/http-core/src/examples/org/apache/http/examples/ElementalHttpGet.java
Sun Jan 29 09:48:49 2006
@@ -73,10 +73,10 @@
         
         HttpRequestExecutor httpexecutor = new HttpRequestExecutor();
         httpexecutor.setParams(params);
-        // Required request interceptors
+        // Required protocol interceptors
         httpexecutor.addInterceptor(new RequestContent());
         httpexecutor.addInterceptor(new RequestTargetHost());
-        // Recommended request interceptors
+        // Recommended protocol interceptors
         httpexecutor.addInterceptor(new RequestConnControl());
         httpexecutor.addInterceptor(new RequestUserAgent());
         httpexecutor.addInterceptor(new RequestExpectContinue());

Modified: jakarta/httpcomponents/trunk/http-core/src/examples/org/apache/http/examples/ElementalHttpPost.java
URL: http://svn.apache.org/viewcvs/jakarta/httpcomponents/trunk/http-core/src/examples/org/apache/http/examples/ElementalHttpPost.java?rev=373333&r1=373332&r2=373333&view=diff
==============================================================================
--- jakarta/httpcomponents/trunk/http-core/src/examples/org/apache/http/examples/ElementalHttpPost.java
(original)
+++ jakarta/httpcomponents/trunk/http-core/src/examples/org/apache/http/examples/ElementalHttpPost.java
Sun Jan 29 09:48:49 2006
@@ -79,10 +79,10 @@
         
         HttpRequestExecutor httpexecutor = new HttpRequestExecutor();
         httpexecutor.setParams(params);
-        // Required request interceptors
+        // Required protocol interceptors
         httpexecutor.addInterceptor(new RequestContent());
         httpexecutor.addInterceptor(new RequestTargetHost());
-        // Recommended request interceptors
+        // Recommended protocol interceptors
         httpexecutor.addInterceptor(new RequestConnControl());
         httpexecutor.addInterceptor(new RequestUserAgent());
         httpexecutor.addInterceptor(new RequestExpectContinue());

Modified: jakarta/httpcomponents/trunk/http-core/src/examples/org/apache/http/examples/ElementalHttpServer.java
URL: http://svn.apache.org/viewcvs/jakarta/httpcomponents/trunk/http-core/src/examples/org/apache/http/examples/ElementalHttpServer.java?rev=373333&r1=373332&r2=373333&view=diff
==============================================================================
--- jakarta/httpcomponents/trunk/http-core/src/examples/org/apache/http/examples/ElementalHttpServer.java
(original)
+++ jakarta/httpcomponents/trunk/http-core/src/examples/org/apache/http/examples/ElementalHttpServer.java
Sun Jan 29 09:48:49 2006
@@ -147,11 +147,13 @@
                     System.out.println("Incoming connection from " + socket.getInetAddress());
                     conn.bind(socket, this.params);
                     FileServiceHandler fileServiceHandler = new FileServiceHandler(conn);
-                    // Add required protocol interceptors
-                    fileServiceHandler.addInterceptor(new ResponseContent());
-                    fileServiceHandler.addInterceptor(new ResponseConnControl());
+
+                    // Required protocol interceptors
                     fileServiceHandler.addInterceptor(new ResponseDate());
                     fileServiceHandler.addInterceptor(new ResponseServer());            
       
+                    fileServiceHandler.addInterceptor(new ResponseContent());
+                    fileServiceHandler.addInterceptor(new ResponseConnControl());
+                    
                     fileServiceHandler.setParams(this.params);
                     Thread t = new ConnectionProcessorThread(fileServiceHandler);
                     t.setDaemon(true);



Mime
View raw message