hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r610050 - /httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/message/AbstractHttpMessage.java
Date Tue, 08 Jan 2008 16:22:57 GMT
Author: olegk
Date: Tue Jan  8 08:22:56 2008
New Revision: 610050

URL: http://svn.apache.org/viewvc?rev=610050&view=rev
Log:
Added a constructor accepting an optional HttpParams argument

Modified:
    httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/message/AbstractHttpMessage.java

Modified: httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/message/AbstractHttpMessage.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/message/AbstractHttpMessage.java?rev=610050&r1=610049&r2=610050&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/message/AbstractHttpMessage.java
(original)
+++ httpcomponents/httpcore/trunk/module-main/src/main/java/org/apache/http/message/AbstractHttpMessage.java
Tue Jan  8 08:22:56 2008
@@ -54,10 +54,18 @@
     
     private HttpParams params;
     
-    protected AbstractHttpMessage() {
+    protected AbstractHttpMessage(final HttpParams params) {
         super();
         this.headergroup = new HeaderGroup();
-        this.params = new BasicHttpParams(null);
+        if (params != null) {
+            this.params = params;
+        } else {
+            this.params = new BasicHttpParams();
+        }
+    }
+
+    protected AbstractHttpMessage() {
+        this(null);
     }
 
     // non-javadoc, see interface HttpMessage



Mime
View raw message