The current Client code does not work on a 1.4 JVM since the
String.replace method doesn't exist. I have attached a patch to change
the CacheControlParser to use String.replaceAll.
Thanks,
-steve
Index:
java/trunk/protocol/src/main/java/org/apache/abdera/protocol/util/CacheControlParser.java
===================================================================
---
java/trunk/protocol/src/main/java/org/apache/abdera/protocol/util/CacheControlParser.java
(revision 452056)
+++
java/trunk/protocol/src/main/java/org/apache/abdera/protocol/util/CacheControlParser.java
(working copy)
@@ -31,7 +31,7 @@
public static Directive select(String d) {
try {
- d = d.toUpperCase().replace("-", "");
+ d = d.toUpperCase().replaceAll("-", "");
return Directive.valueOf(d);
} catch (Exception e) {}
return UNKNOWN;