hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1641781 - in /httpcomponents/httpclient/trunk/fluent-hc/src/main/java/org/apache/http/client/fluent: Content.java ContentResponseHandler.java
Date Wed, 26 Nov 2014 09:29:01 GMT
Author: olegk
Date: Wed Nov 26 09:29:01 2014
New Revision: 1641781

URL: http://svn.apache.org/r1641781
Log:
HTTPCLIENT-1581: Made ContentResponseHandler public

Modified:
    httpcomponents/httpclient/trunk/fluent-hc/src/main/java/org/apache/http/client/fluent/Content.java
    httpcomponents/httpclient/trunk/fluent-hc/src/main/java/org/apache/http/client/fluent/ContentResponseHandler.java

Modified: httpcomponents/httpclient/trunk/fluent-hc/src/main/java/org/apache/http/client/fluent/Content.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/fluent-hc/src/main/java/org/apache/http/client/fluent/Content.java?rev=1641781&r1=1641780&r2=1641781&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/fluent-hc/src/main/java/org/apache/http/client/fluent/Content.java
(original)
+++ httpcomponents/httpclient/trunk/fluent-hc/src/main/java/org/apache/http/client/fluent/Content.java
Wed Nov 26 09:29:01 2014
@@ -33,6 +33,10 @@ import java.nio.charset.Charset;
 import org.apache.http.Consts;
 import org.apache.http.entity.ContentType;
 
+/**
+ * This class represents arbitrary content of a specfic type that can be consumed
+ * multiple times and requires no explicit deallocation.
+ */
 public class Content {
 
     public static final Content NO_CONTENT = new Content(new byte[] {}, ContentType.DEFAULT_BINARY);

Modified: httpcomponents/httpclient/trunk/fluent-hc/src/main/java/org/apache/http/client/fluent/ContentResponseHandler.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/fluent-hc/src/main/java/org/apache/http/client/fluent/ContentResponseHandler.java?rev=1641781&r1=1641780&r2=1641781&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/fluent-hc/src/main/java/org/apache/http/client/fluent/ContentResponseHandler.java
(original)
+++ httpcomponents/httpclient/trunk/fluent-hc/src/main/java/org/apache/http/client/fluent/ContentResponseHandler.java
Wed Nov 26 09:29:01 2014
@@ -37,7 +37,16 @@ import org.apache.http.client.ResponseHa
 import org.apache.http.entity.ContentType;
 import org.apache.http.util.EntityUtils;
 
-class ContentResponseHandler implements ResponseHandler<Content> {
+/**
+ * {@link org.apache.http.client.ResponseHandler} implementation that converts
+ * {@link org.apache.http.HttpResponse} messages to {@link org.apache.http.client.fluent.Content}
+ * instances.
+ *
+ * @see org.apache.http.client.fluent.Content
+ *
+ * @since 4.4
+ */
+public class ContentResponseHandler implements ResponseHandler<Content> {
 
     @Override
     public Content handleResponse(



Mime
View raw message