abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r438308 - /incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/RequestOptions.java
Date Wed, 30 Aug 2006 00:20:56 GMT
Author: jmsnell
Date: Tue Aug 29 17:20:55 2006
New Revision: 438308

URL: http://svn.apache.org/viewvc?rev=438308&view=rev
Log:
Add support for the new Slug header introduced in the latest consensus call round.
The Slug essentially takes the place of the Title header.

Modified:
    incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/RequestOptions.java

Modified: incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/RequestOptions.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/RequestOptions.java?rev=438308&r1=438307&r2=438308&view=diff
==============================================================================
--- incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/RequestOptions.java
(original)
+++ incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/RequestOptions.java
Tue Aug 29 17:20:55 2006
@@ -241,7 +241,7 @@
   }
   
   public void setAccept(String... accept) {
-    setHeader("Accept", accept);
+    setHeader("Accept", combine(accept));
   }
   
   public String getAcceptLanguage() {
@@ -253,7 +253,7 @@
   }
   
   public void setAcceptLanguage(String... accept) {
-    setHeader("Accept-Language", accept);
+    setHeader("Accept-Language", combine(accept));
   }
   
   public String getAcceptCharset() {
@@ -265,7 +265,7 @@
   }
   
   public void setAcceptCharset(String... accept) {
-    setHeader("Accept-Charset", accept);
+    setHeader("Accept-Charset", combine(accept));
   }
   
   public String getAcceptEncoding() {
@@ -277,7 +277,15 @@
   }
   
   public void setAcceptEncoding(String... accept) {
-    setHeader("Accept-Encoding", accept);
+    setHeader("Accept-Encoding", combine(accept));
+  }
+  
+  public void setSlug(String slug) {
+    setHeader("Slug", slug);
+  }
+  
+  public String getSlug() {
+    return getHeader("Slug");
   }
   
   public boolean getOnlyIfCached() {



Mime
View raw message