hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r159280 - in jakarta/httpclient/trunk/http-common/src/java/org/apache/http: HttpMessage.java HttpMutableMessage.java impl/BasicHttpMessage.java
Date Mon, 28 Mar 2005 19:11:38 GMT
Author: olegk
Date: Mon Mar 28 11:11:37 2005
New Revision: 159280

URL: http://svn.apache.org/viewcvs?view=rev&rev=159280
Log:
Made HttpParams readable on HttpMessage and settable on HttpMutableMessage interface

Modified:
    jakarta/httpclient/trunk/http-common/src/java/org/apache/http/HttpMessage.java
    jakarta/httpclient/trunk/http-common/src/java/org/apache/http/HttpMutableMessage.java
    jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/BasicHttpMessage.java

Modified: jakarta/httpclient/trunk/http-common/src/java/org/apache/http/HttpMessage.java
URL: http://svn.apache.org/viewcvs/jakarta/httpclient/trunk/http-common/src/java/org/apache/http/HttpMessage.java?view=diff&r1=159279&r2=159280
==============================================================================
--- jakarta/httpclient/trunk/http-common/src/java/org/apache/http/HttpMessage.java (original)
+++ jakarta/httpclient/trunk/http-common/src/java/org/apache/http/HttpMessage.java Mon Mar
28 11:11:37 2005
@@ -29,6 +29,8 @@
 
 package org.apache.http;
 
+import org.apache.http.params.HttpParams;
+
 /**
  * <p>
  * </p>
@@ -49,5 +51,7 @@
     Header getLastHeader(String name);
 
     Header[] getAllHeaders();
+
+    HttpParams getParams();
     
 }

Modified: jakarta/httpclient/trunk/http-common/src/java/org/apache/http/HttpMutableMessage.java
URL: http://svn.apache.org/viewcvs/jakarta/httpclient/trunk/http-common/src/java/org/apache/http/HttpMutableMessage.java?view=diff&r1=159279&r2=159280
==============================================================================
--- jakarta/httpclient/trunk/http-common/src/java/org/apache/http/HttpMutableMessage.java
(original)
+++ jakarta/httpclient/trunk/http-common/src/java/org/apache/http/HttpMutableMessage.java
Mon Mar 28 11:11:37 2005
@@ -51,7 +51,7 @@
     void removeHeader(Header header);
     
     Iterator headerIterator();
-
-    HttpParams getParams();
+    
+    void setParams(HttpParams params);
     
 }

Modified: jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/BasicHttpMessage.java
URL: http://svn.apache.org/viewcvs/jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/BasicHttpMessage.java?view=diff&r1=159279&r2=159280
==============================================================================
--- jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/BasicHttpMessage.java
(original)
+++ jakarta/httpclient/trunk/http-common/src/java/org/apache/http/impl/BasicHttpMessage.java
Mon Mar 28 11:11:37 2005
@@ -47,7 +47,8 @@
 class BasicHttpMessage implements HttpMutableMessage {
     
     private final HeaderGroup headergroup;
-    private final HttpParams params;
+    
+    private HttpParams params = null;
     
     protected BasicHttpMessage() {
         super();
@@ -102,4 +103,10 @@
         return this.params;
     }
     
+    public void setParams(final HttpParams params) {
+        if (params == null) {
+            throw new IllegalArgumentException("HTTP parameters may not be null");
+        }
+        this.params = params;
+    }
 }



Mime
View raw message