You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2012/02/07 13:41:38 UTC
svn commit: r1241447 -
/httpcomponents/httpasyncclient/trunk/httpasyncclient/src/examples/org/apache/http/examples/nio/client/ZeroCopyHttpExchange.java
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());
}