cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject cvs commit: xml-cocoon2/src/java/org/apache/cocoon/reading ResourceReader.java
Date Wed, 05 Jun 2002 01:52:59 GMT
vgritsenko    2002/06/04 18:52:59

  Modified:    src/java/org/apache/cocoon/reading ResourceReader.java
  Log:
  fix compilation - contentLength is gone...
  
  Revision  Changes    Path
  1.15      +3 -3      xml-cocoon2/src/java/org/apache/cocoon/reading/ResourceReader.java
  
  Index: ResourceReader.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/reading/ResourceReader.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- ResourceReader.java	5 Jun 2002 01:41:35 -0000	1.14
  +++ ResourceReader.java	5 Jun 2002 01:52:59 -0000	1.15
  @@ -63,12 +63,10 @@
   import org.apache.cocoon.environment.ObjectModelHelper;
   import org.apache.cocoon.environment.Response;
   import org.apache.cocoon.environment.SourceResolver;
  -import org.apache.cocoon.util.HashUtil;
   import org.xml.sax.SAXException;
   
   import java.io.IOException;
   import java.io.InputStream;
  -import java.util.Date;
   import java.util.Map;
   
   /**
  @@ -89,7 +87,7 @@
    *   </dl>
    *
    * @author <a href="mailto:Giacomo.Pati@pwr.ch">Giacomo Pati</a>
  - * @version CVS $Id: ResourceReader.java,v 1.14 2002/06/05 01:41:35 vgritsenko Exp $
  + * @version CVS $Id: ResourceReader.java,v 1.15 2002/06/05 01:52:59 vgritsenko Exp $
    */
   public class ResourceReader
     extends AbstractReader
  @@ -169,12 +167,14 @@
                   response.setDateHeader("Expires", System.currentTimeMillis() + expires);
               }
   
  +            /* FIXME: VG: getContentLength is gone.
               long contentLength = this.inputSource.getContentLength();
               if (contentLength != -1) {
                   // FIXME (VG): Environment has setContentLength, and
                   // Response interface has not. Strange.
                   response.setHeader("Content-Length", Long.toString(contentLength));
               }
  +            */
   
               // Bug #9539: This resource reader does not support ranges
               response.setHeader("Accept-Ranges", "none");
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message