roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r573577 - /roller/branches/roller_4.1_dev/apps/weblogger/src/java/org/apache/roller/weblogger/webservices/tagdata/TagDataServlet.java
Date Fri, 07 Sep 2007 13:33:34 GMT
Author: snoopdave
Date: Fri Sep  7 06:33:33 2007
New Revision: 573577

URL: http://svn.apache.org/viewvc?rev=573577&view=rev
Log:
Added XML prolog line and a TODO comment

Modified:
    roller/branches/roller_4.1_dev/apps/weblogger/src/java/org/apache/roller/weblogger/webservices/tagdata/TagDataServlet.java

Modified: roller/branches/roller_4.1_dev/apps/weblogger/src/java/org/apache/roller/weblogger/webservices/tagdata/TagDataServlet.java
URL: http://svn.apache.org/viewvc/roller/branches/roller_4.1_dev/apps/weblogger/src/java/org/apache/roller/weblogger/webservices/tagdata/TagDataServlet.java?rev=573577&r1=573576&r2=573577&view=diff
==============================================================================
--- roller/branches/roller_4.1_dev/apps/weblogger/src/java/org/apache/roller/weblogger/webservices/tagdata/TagDataServlet.java
(original)
+++ roller/branches/roller_4.1_dev/apps/weblogger/src/java/org/apache/roller/weblogger/webservices/tagdata/TagDataServlet.java
Fri Sep  7 06:33:33 2007
@@ -66,6 +66,8 @@
         String prefix = null;
         String format = "json";
         int page = 0;
+        
+        // TODO: last modified or ETag support, caching, etc.
 
         if (request.getPathInfo() != null) {
             pathInfo = Utilities.stringToStringArray(request.getPathInfo(),"/");
@@ -136,6 +138,7 @@
             URLStrategy urlstrat = roller.getUrlStrategy();
             response.setContentType("application/tagdata+xml; charset=utf-8");
             PrintWriter pw = response.getWriter();
+            pw.println("<?xml version=\"1.0\" encoding=\"utf-8\"?>"); 
             pw.println("<categories fixed=\"no\" "); 
             pw.println("   xmlns=\"http://www.w3.org/2007/app\""); 
             pw.println("   xmlns:atom=\"http://www.w3.org/2005/Atom\""); 



Mime
View raw message