hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r450974 - in /jakarta/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/protocol: BasicHttpProcessor.java HttpProcessor.java HttpRequestExecutor.java HttpService.java
Date Thu, 28 Sep 2006 19:12:52 GMT
Author: olegk
Date: Thu Sep 28 12:12:49 2006
New Revision: 450974

URL: http://svn.apache.org/viewvc?view=rev&rev=450974
Log:
[HTTPCORE-13] AbstractHttpProcessor is not really abstract

Changelog:
----------
* Aligned the method names of HttpProcessor interface with with those in Http{Request|Response}Interceptor.

Modified:
    jakarta/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/protocol/BasicHttpProcessor.java
    jakarta/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/protocol/HttpProcessor.java
    jakarta/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/protocol/HttpRequestExecutor.java
    jakarta/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/protocol/HttpService.java

Modified: jakarta/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/protocol/BasicHttpProcessor.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/protocol/BasicHttpProcessor.java?view=diff&rev=450974&r1=450973&r2=450974
==============================================================================
--- jakarta/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/protocol/BasicHttpProcessor.java
(original)
+++ jakarta/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/protocol/BasicHttpProcessor.java
Thu Sep 28 12:12:49 2006
@@ -147,7 +147,7 @@
         this.responseInterceptors = null;
     }
     
-    public void preprocessRequest(
+    public void process(
             final HttpRequest request,
             final HttpContext context) 
                 throws IOException, HttpException {
@@ -159,7 +159,7 @@
         }
     }
 
-    public void postprocessResponse(
+    public void process(
             final HttpResponse response,
             final HttpContext context) 
                 throws IOException, HttpException {

Modified: jakarta/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/protocol/HttpProcessor.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/protocol/HttpProcessor.java?view=diff&rev=450974&r1=450973&r2=450974
==============================================================================
--- jakarta/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/protocol/HttpProcessor.java
(original)
+++ jakarta/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/protocol/HttpProcessor.java
Thu Sep 28 12:12:49 2006
@@ -48,7 +48,7 @@
 public interface HttpProcessor {
 
     /**
-     * Preprocesses a request.
+     * Processes a request.
      * On the client side, this step is performed before the request is
      * sent to the server. On the server side, this step is performed
      * on incoming messages before the message body is evaluated.
@@ -59,14 +59,13 @@
      * @throws IOException      in case of an IO problem
      * @throws HttpException    in case of a protocol or other problem
      */
-    void preprocessRequest(HttpRequest request,
-                           HttpContext context) 
+    void process(HttpRequest request, HttpContext context) 
         throws IOException, HttpException
         ;
 
 
     /**
-     * Preprocesses a request.
+     * Processes a request.
      * On the client side, this step is performed before the request is
      * sent to the server. On the server side, this step is performed
      * on incoming messages before the message body is evaluated.
@@ -77,8 +76,7 @@
      * @throws IOException      in case of an IO problem
      * @throws HttpException    in case of a protocol or other problem
      */
-    void postprocessResponse(HttpResponse response,
-                             HttpContext context)
+    void process(HttpResponse response, HttpContext context)
         throws IOException, HttpException
         ;
 

Modified: jakarta/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/protocol/HttpRequestExecutor.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/protocol/HttpRequestExecutor.java?view=diff&rev=450974&r1=450973&r2=450974
==============================================================================
--- jakarta/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/protocol/HttpRequestExecutor.java
(original)
+++ jakarta/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/protocol/HttpRequestExecutor.java
Thu Sep 28 12:12:49 2006
@@ -186,7 +186,7 @@
         }
         // link default parameters
         request.getParams().setDefaults(this.params);
-        processor.preprocessRequest(request, context);
+        processor.process(request, context);
     }
 
     /**
@@ -340,7 +340,7 @@
         if (context == null) {
             throw new IllegalArgumentException("HTTP context may not be null");
         }
-        processor.postprocessResponse(response, context);
+        processor.process(response, context);
     }
 
 } // class HttpRequestExecutor

Modified: jakarta/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/protocol/HttpService.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/protocol/HttpService.java?view=diff&rev=450974&r1=450973&r2=450974
==============================================================================
--- jakarta/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/protocol/HttpService.java
(original)
+++ jakarta/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/protocol/HttpService.java
Thu Sep 28 12:12:49 2006
@@ -169,7 +169,7 @@
                 }
                 conn.receiveRequestEntity((HttpEntityEnclosingRequest) request);
             }
-            processor.preprocessRequest(request, context);
+            processor.process(request, context);
 
             context.setAttribute(HttpExecutionContext.HTTP_REQUEST, request);
             context.setAttribute(HttpExecutionContext.HTTP_RESPONSE, response);
@@ -188,7 +188,7 @@
             response.getParams().setDefaults(this.params);
             handleException(ex, response);
         }
-        processor.postprocessResponse(response, context);
+        processor.process(response, context);
         conn.sendResponseHeader(response);
         conn.sendResponseEntity(response);
         conn.flush();



Mime
View raw message