hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r418580 - in /jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/cookie/impl: BrowserCompatSpec.java NetscapeDraftSpec.java
Date Sun, 02 Jul 2006 11:35:06 GMT
Author: olegk
Date: Sun Jul  2 04:35:06 2006
New Revision: 418580

URL: http://svn.apache.org/viewvc?rev=418580&view=rev
Log:
[HTTPCORE-5] Made HeaderElement an interface

Modified:
    jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/cookie/impl/BrowserCompatSpec.java
    jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/cookie/impl/NetscapeDraftSpec.java

Modified: jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/cookie/impl/BrowserCompatSpec.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/cookie/impl/BrowserCompatSpec.java?rev=418580&r1=418579&r2=418580&view=diff
==============================================================================
--- jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/cookie/impl/BrowserCompatSpec.java
(original)
+++ jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/cookie/impl/BrowserCompatSpec.java
Sun Jul  2 04:35:06 2006
@@ -36,6 +36,7 @@
 import org.apache.http.cookie.MalformedCookieException;
 import org.apache.http.io.CharArrayBuffer;
 import org.apache.http.message.BasicHeader;
+import org.apache.http.message.BasicHeaderElement;
 import org.apache.http.util.DateParseException;
 import org.apache.http.util.DateUtils;
 
@@ -117,7 +118,7 @@
         }
         HeaderElement[] elems = null;
         if (isNetscapeCookie) {
-            elems = new HeaderElement[] { HeaderElement.parse(headervalue) };
+            elems = new HeaderElement[] { BasicHeaderElement.parse(headervalue) };
         } else {
             elems = header.getElements();
         }

Modified: jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/cookie/impl/NetscapeDraftSpec.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/cookie/impl/NetscapeDraftSpec.java?rev=418580&r1=418579&r2=418580&view=diff
==============================================================================
--- jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/cookie/impl/NetscapeDraftSpec.java
(original)
+++ jakarta/httpcomponents/httpclient/trunk/src/java/org/apache/http/cookie/impl/NetscapeDraftSpec.java
Sun Jul  2 04:35:06 2006
@@ -36,6 +36,7 @@
 import org.apache.http.cookie.MalformedCookieException;
 import org.apache.http.io.CharArrayBuffer;
 import org.apache.http.message.BasicHeader;
+import org.apache.http.message.BasicHeaderElement;
 
 /**
  * Netscape cookie draft compliant cookie policy
@@ -103,7 +104,7 @@
             throw new IllegalArgumentException("Cookie origin may not be null");
         }
         String headervalue = header.getValue();
-        return parse(new HeaderElement[] { HeaderElement.parse(headervalue) }, origin);
+        return parse(new HeaderElement[] { BasicHeaderElement.parse(headervalue) }, origin);
     }
 
     public Header[] formatCookies(final Cookie[] cookies) {



Mime
View raw message