hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1241447 - /httpcomponents/httpasyncclient/trunk/httpasyncclient/src/examples/org/apache/http/examples/nio/client/ZeroCopyHttpExchange.java
Date Tue, 07 Feb 2012 12:41:38 GMT
Author: olegk
Date: Tue Feb  7 12:41:38 2012
New Revision: 1241447

URL: http://svn.apache.org/viewvc?rev=1241447&view=rev
Log:
Fixed API breakage in examples

Modified:
    httpcomponents/httpasyncclient/trunk/httpasyncclient/src/examples/org/apache/http/examples/nio/client/ZeroCopyHttpExchange.java

Modified: httpcomponents/httpasyncclient/trunk/httpasyncclient/src/examples/org/apache/http/examples/nio/client/ZeroCopyHttpExchange.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpasyncclient/trunk/httpasyncclient/src/examples/org/apache/http/examples/nio/client/ZeroCopyHttpExchange.java?rev=1241447&r1=1241446&r2=1241447&view=diff
==============================================================================
--- httpcomponents/httpasyncclient/trunk/httpasyncclient/src/examples/org/apache/http/examples/nio/client/ZeroCopyHttpExchange.java
(original)
+++ httpcomponents/httpasyncclient/trunk/httpasyncclient/src/examples/org/apache/http/examples/nio/client/ZeroCopyHttpExchange.java
Tue Feb  7 12:41:38 2012
@@ -51,7 +51,10 @@ public class ZeroCopyHttpExchange {
             ZeroCopyConsumer<File> consumer = new ZeroCopyConsumer<File>(download)
{
 
                 @Override
-                protected File process(final HttpResponse response, final File file) throws
Exception {
+                protected File process(
+                        final HttpResponse response, 
+                        final File file,
+                        final ContentType contentType) throws Exception {
                     if (response.getStatusLine().getStatusCode() != HttpStatus.SC_OK) {
                         throw new ClientProtocolException("Upload failed: " + response.getStatusLine());
                     }



Mime
View raw message