hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r358383 - /jakarta/httpcomponents/trunk/http-core/src/java/org/apache/http/impl/entity/DefaultEntityGenerator.java
Date Wed, 21 Dec 2005 21:12:22 GMT
Author: olegk
Date: Wed Dec 21 13:12:16 2005
New Revision: 358383

URL: http://svn.apache.org/viewcvs?rev=358383&view=rev
Log:
The standard RFC compliant entity generating logic moved to a protected method that can be
extended by a super class

Modified:
    jakarta/httpcomponents/trunk/http-core/src/java/org/apache/http/impl/entity/DefaultEntityGenerator.java

Modified: jakarta/httpcomponents/trunk/http-core/src/java/org/apache/http/impl/entity/DefaultEntityGenerator.java
URL: http://svn.apache.org/viewcvs/jakarta/httpcomponents/trunk/http-core/src/java/org/apache/http/impl/entity/DefaultEntityGenerator.java?rev=358383&r1=358382&r2=358383&view=diff
==============================================================================
--- jakarta/httpcomponents/trunk/http-core/src/java/org/apache/http/impl/entity/DefaultEntityGenerator.java
(original)
+++ jakarta/httpcomponents/trunk/http-core/src/java/org/apache/http/impl/entity/DefaultEntityGenerator.java
Wed Dec 21 13:12:16 2005
@@ -197,7 +197,7 @@
         super();
     }
 
-    public HttpMutableEntity generate(
+    protected BasicHttpEntity generateEntity(
             final HttpDataReceiver datareceiver,
             final HttpMessage message) throws HttpException, IOException {
         if (datareceiver == null) {
@@ -207,7 +207,7 @@
             throw new IllegalArgumentException("HTTP message may not be null");
         }
 
-        HttpMutableEntity entity = new BasicHttpEntity();
+        BasicHttpEntity entity = new BasicHttpEntity();
         
         HttpParams params = message.getParams(); 
         boolean strict = params.isParameterTrue(HttpProtocolParams.STRICT_TRANSFER_ENCODING);
@@ -288,4 +288,10 @@
         return entity;
     }
         
+    public HttpMutableEntity generate(
+            final HttpDataReceiver datareceiver,
+            final HttpMessage message) throws HttpException, IOException {
+        return generateEntity(datareceiver, message);
+    }
+    
 }



Mime
View raw message