[Yanel-commits] rev 25932 -
public/yanel/trunk/src/webapp/src/java/org/wyona/yanel/servlet
michi at wyona.com
michi at wyona.com
Thu Jul 12 01:08:00 CEST 2007
Author: michi
Date: 2007-07-12 01:07:58 +0200 (Thu, 12 Jul 2007)
New Revision: 25932
Modified:
public/yanel/trunk/src/webapp/src/java/org/wyona/yanel/servlet/YanelServlet.java
Log:
content length and last modified started
Modified: public/yanel/trunk/src/webapp/src/java/org/wyona/yanel/servlet/YanelServlet.java
===================================================================
--- public/yanel/trunk/src/webapp/src/java/org/wyona/yanel/servlet/YanelServlet.java 2007-07-11 22:55:43 UTC (rev 25931)
+++ public/yanel/trunk/src/webapp/src/java/org/wyona/yanel/servlet/YanelServlet.java 2007-07-11 23:07:58 UTC (rev 25932)
@@ -1310,6 +1310,11 @@
sb.append(" <resourcetype/>");
// TODO: Set mime type of node!
sb.append(" <getcontenttype>application/octet-stream</getcontenttype>");
+ // TODO: Set content length and last modified!
+ sb.append(" <getcontentlength>0</getcontentlength>");
+ sb.append(" <getlastmodified>1969.02.16</getlastmodified>");
+
+ // See http://www.webdav.org/specs/rfc2518.html#PROPERTY_source, http://wiki.zope.org/HiperDom/RoundtripEditingDiscussion
sb.append(" <source>\n");
sb.append(" <link>\n");
sb.append(" <src>" + request.getRequestURI() + "</src>\n");
@@ -1349,7 +1354,11 @@
sb.append(" <resourcetype/>\n");
// TODO: Set mime type of node!
sb.append(" <getcontenttype>application/octet-stream</getcontenttype>\n");
- // http://www.webdav.org/specs/rfc2518.html#PROPERTY_source, http://wiki.zope.org/HiperDom/RoundtripEditingDiscussion
+ // TODO: Set content length and last modified!
+ sb.append(" <getcontentlength>0</getcontentlength>");
+ sb.append(" <getlastmodified>1969.02.16</getlastmodified>");
+
+ // See http://www.webdav.org/specs/rfc2518.html#PROPERTY_source, http://wiki.zope.org/HiperDom/RoundtripEditingDiscussion
sb.append(" <source>\n");
sb.append(" <link>\n");
sb.append(" <src>" + request.getRequestURI() + "/" + children[i].getName() + "</src>\n");
More information about the Yanel-commits
mailing list