abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r517362 - /incubator/abdera/java/trunk/protocol/src/main/java/org/apache/abdera/protocol/util/AbstractResponse.java
Date Mon, 12 Mar 2007 20:01:19 GMT
Author: jmsnell
Date: Mon Mar 12 13:01:19 2007
New Revision: 517362

URL: http://svn.apache.org/viewvc?view=rev&rev=517362
Log:
Get decoded slug in response

Modified:
    incubator/abdera/java/trunk/protocol/src/main/java/org/apache/abdera/protocol/util/AbstractResponse.java

Modified: incubator/abdera/java/trunk/protocol/src/main/java/org/apache/abdera/protocol/util/AbstractResponse.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/protocol/src/main/java/org/apache/abdera/protocol/util/AbstractResponse.java?view=diff&rev=517362&r1=517361&r2=517362
==============================================================================
--- incubator/abdera/java/trunk/protocol/src/main/java/org/apache/abdera/protocol/util/AbstractResponse.java
(original)
+++ incubator/abdera/java/trunk/protocol/src/main/java/org/apache/abdera/protocol/util/AbstractResponse.java
Mon Mar 12 13:01:19 2007
@@ -63,7 +63,7 @@
   }
   
   public String getSlug() {
-    return getHeader("Slug");
+    return getDecodedHeader("Slug");
   }
 
   public MimeType getContentType() throws MimeTypeParseException {
@@ -189,6 +189,10 @@
   private void toggle(boolean val, int flag) {
     if (val) flags |= flag;
     else flags &= ~flag;
+  }
+  
+  public String getDecodedHeader(String header) {
+    return EncodingUtil.decode(getHeader(header));
   }
   
 }



Mime
View raw message