tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cos...@apache.org
Subject cvs commit: jakarta-tomcat/src/facade22/org/apache/tomcat/facade ServletOutputStreamFacade.java
Date Mon, 03 Jun 2002 17:25:00 GMT
costin      2002/06/03 10:25:00

  Modified:    src/share/org/apache/tomcat/core Response.java
               src/facade22/org/apache/tomcat/facade
                        ServletOutputStreamFacade.java
  Log:
  Add a notification on user-initiated flush().
  
  The writer doesn't need changes, since it'll be propagated to the
  output stream.
  
  User calling flush() is the only event that _requires_ us to send
  data - we can cache everything until this happens.
  
  Revision  Changes    Path
  1.56      +5 -0      jakarta-tomcat/src/share/org/apache/tomcat/core/Response.java
  
  Index: Response.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/core/Response.java,v
  retrieving revision 1.55
  retrieving revision 1.56
  diff -u -r1.55 -r1.56
  --- Response.java	26 Aug 2001 01:52:18 -0000	1.55
  +++ Response.java	3 Jun 2002 17:25:00 -0000	1.56
  @@ -402,6 +402,11 @@
         oBuffer.flush();
       }
   
  +    /** Client-originated flush
  +     */
  +    public void clientFlush() throws IOException {
  +        // Nothing. Can be overriden.
  +    }
   
       // -------------------- I18N --------------------
       
  
  
  
  1.5       +2 -1      jakarta-tomcat/src/facade22/org/apache/tomcat/facade/ServletOutputStreamFacade.java
  
  Index: ServletOutputStreamFacade.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/facade22/org/apache/tomcat/facade/ServletOutputStreamFacade.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ServletOutputStreamFacade.java	22 Mar 2002 02:54:34 -0000	1.4
  +++ ServletOutputStreamFacade.java	3 Jun 2002 17:25:00 -0000	1.5
  @@ -142,7 +142,8 @@
       public void flush() throws IOException {
   	if( ob.flushCharsNeeded() )
   	    ob.flushChars();
  -	ob.flushBytes();
  +        ob.flushBytes();
  +        resA.clientFlush();
       }
   
       public void close() throws IOException {
  
  
  

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message