hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rola...@apache.org
Subject svn commit: r505746 - in /jakarta/httpcomponents/httpasync/trunk/src: java/org/apache/http/async/impl/NotificationResponseWrapper.java test/java/org/apache/http/async/TestAbstractHttpHandle.java
Date Sat, 10 Feb 2007 18:59:15 GMT
Author: rolandw
Date: Sat Feb 10 10:59:14 2007
New Revision: 505746

URL: http://svn.apache.org/viewvc?view=rev&rev=505746
Log:
HTTPCORE-39

Modified:
    jakarta/httpcomponents/httpasync/trunk/src/java/org/apache/http/async/impl/NotificationResponseWrapper.java
    jakarta/httpcomponents/httpasync/trunk/src/test/java/org/apache/http/async/TestAbstractHttpHandle.java

Modified: jakarta/httpcomponents/httpasync/trunk/src/java/org/apache/http/async/impl/NotificationResponseWrapper.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpasync/trunk/src/java/org/apache/http/async/impl/NotificationResponseWrapper.java?view=diff&rev=505746&r1=505745&r2=505746
==============================================================================
--- jakarta/httpcomponents/httpasync/trunk/src/java/org/apache/http/async/impl/NotificationResponseWrapper.java
(original)
+++ jakarta/httpcomponents/httpasync/trunk/src/java/org/apache/http/async/impl/NotificationResponseWrapper.java
Sat Feb 10 10:59:14 2007
@@ -32,6 +32,7 @@
 package org.apache.http.async.impl;
 
 
+import java.util.Locale;
 import java.util.Iterator;
 
 import org.apache.http.HttpResponse;
@@ -127,9 +128,30 @@
     }
 
     // non-javadoc, see interface HttpResponse
+    public void setStatusLine(HttpVersion ver, int code, String reason) {
+        wrapped_response.setStatusLine(ver, code, reason);
+    }
+
+    // non-javadoc, see interface HttpResponse
     public void setStatusCode(int code) {
         wrapped_response.setStatusCode(code);
     }
+
+    // non-javadoc, see interface HttpResponse
+    public void setReasonPhrase(String reason) {
+        wrapped_response.setReasonPhrase(reason);
+    }
+
+    // non-javadoc, see interface HttpResponse
+    public Locale getLocale() {
+        return wrapped_response.getLocale();
+    }
+
+    // non-javadoc, see interface HttpResponse
+    public void setLocale(Locale loc) {
+        wrapped_response.setLocale(loc);
+    }
+
 
 
 

Modified: jakarta/httpcomponents/httpasync/trunk/src/test/java/org/apache/http/async/TestAbstractHttpHandle.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpasync/trunk/src/test/java/org/apache/http/async/TestAbstractHttpHandle.java?view=diff&rev=505746&r1=505745&r2=505746
==============================================================================
--- jakarta/httpcomponents/httpasync/trunk/src/test/java/org/apache/http/async/TestAbstractHttpHandle.java
(original)
+++ jakarta/httpcomponents/httpasync/trunk/src/test/java/org/apache/http/async/TestAbstractHttpHandle.java
Sat Feb 10 10:59:14 2007
@@ -247,7 +247,8 @@
         MockHttpDispatcher mhd = new MockHttpDispatcher(null);
         MockHttpHandle mhh = createHandle(mhd);
 
-        HttpResponse rsp = new BasicHttpResponse(HttpVersion.HTTP_1_1, 200);
+        HttpResponse rsp = new BasicHttpResponse
+            (HttpVersion.HTTP_1_1, 200, "OK");
         mhh.dispatcherPostprocess(rsp);
         assertEquals("not postprocessed", mhd.count_postprocess, 1);
         assertSame("wrong handle",   mhh, mhd.last_handle);



Mime
View raw message