abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r441310 - in /incubator/abdera/java/trunk: client/src/main/java/org/apache/abdera/protocol/client/CommonsResponse.java protocol/src/main/java/org/apache/abdera/protocol/util/CacheControlParser.java
Date Fri, 08 Sep 2006 00:49:50 GMT
Author: jmsnell
Date: Thu Sep  7 17:49:50 2006
New Revision: 441310

URL: http://svn.apache.org/viewvc?view=rev&rev=441310
Log:
A method moved

Modified:
    incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/CommonsResponse.java
    incubator/abdera/java/trunk/protocol/src/main/java/org/apache/abdera/protocol/util/CacheControlParser.java

Modified: incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/CommonsResponse.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/CommonsResponse.java?view=diff&rev=441310&r1=441309&r2=441310
==============================================================================
--- incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/CommonsResponse.java
(original)
+++ incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/CommonsResponse.java
Thu Sep  7 17:49:50 2006
@@ -28,7 +28,7 @@
 import java.util.zip.InflaterInputStream;
 import java.util.zip.ZipInputStream;
 
-import org.apache.abdera.protocol.util.CacheControlUtil;
+import org.apache.abdera.protocol.util.CacheControlParser;
 import org.apache.commons.httpclient.Header;
 import org.apache.commons.httpclient.HttpMethod;
 import org.apache.commons.httpclient.URIException;
@@ -124,7 +124,7 @@
       if (ce != null) {
         // multiple encodings may be applied, they're listed in the order
         // they were applied, so we need to walk the list backwards
-        String[] encodings = CacheControlUtil.splitAndTrim(ce, ",", false);
+        String[] encodings = CacheControlParser.splitAndTrim(ce, ",", false);
         for (int n = encodings.length -1; n >= 0; n--) {
           if ("gzip".equalsIgnoreCase(encodings[n]) ||
               "x-gzip".equalsIgnoreCase(encodings[n])) {

Modified: incubator/abdera/java/trunk/protocol/src/main/java/org/apache/abdera/protocol/util/CacheControlParser.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/protocol/src/main/java/org/apache/abdera/protocol/util/CacheControlParser.java?view=diff&rev=441310&r1=441309&r2=441310
==============================================================================
--- incubator/abdera/java/trunk/protocol/src/main/java/org/apache/abdera/protocol/util/CacheControlParser.java
(original)
+++ incubator/abdera/java/trunk/protocol/src/main/java/org/apache/abdera/protocol/util/CacheControlParser.java
Thu Sep  7 17:49:50 2006
@@ -84,7 +84,7 @@
     return s;
   }
     
-  private static String[] splitAndTrim(String value, String delim, boolean unquote) {
+  public static String[] splitAndTrim(String value, String delim, boolean unquote) {
     String[] headers = (unquote) ? unquote(value).split(delim) : value.split(delim);
     for (int n = 0; n < headers.length; n++) {
       headers[n] = headers[n].trim();



Mime
View raw message