Author: michiel
Date: 2010-06-18 17:15:10 +0200 (Fri, 18 Jun 2010)
New Revision: 42612

Modified:
   
mmbase/trunk/applications/resources/src/main/java/org/mmbase/servlet/FileServlet.java
Log:
javadoc

Modified: 
mmbase/trunk/applications/resources/src/main/java/org/mmbase/servlet/FileServlet.java
===================================================================
--- 
mmbase/trunk/applications/resources/src/main/java/org/mmbase/servlet/FileServlet.java
       2010-06-18 15:11:01 UTC (rev 42611)
+++ 
mmbase/trunk/applications/resources/src/main/java/org/mmbase/servlet/FileServlet.java
       2010-06-18 15:15:10 UTC (rev 42612)
@@ -424,10 +424,12 @@
 
     /**
      * http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
+     * @return A ChainedRange object if Range header was present and If-Range 
did't provide useage. <code>null</code> otherwise.
      * @since MMBase-2.0
      */
     protected ChainedRange getRange(HttpServletRequest req, File file) {
         try {
+            // http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.27
             long ifRange = req.getDateHeader("If-Range");
             if (ifRange < file.lastModified()) {
                 // cannot use partial content, because the file was changed in 
the mean time

_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to