Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 75435 invoked from network); 12 Nov 2002 10:11:08 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 12 Nov 2002 10:11:08 -0000 Received: (qmail 27848 invoked by uid 97); 12 Nov 2002 10:12:10 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@jakarta.apache.org Received: (qmail 27828 invoked by uid 97); 12 Nov 2002 10:12:10 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 27815 invoked by uid 98); 12 Nov 2002 10:12:09 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Subject: Re: ServletOutputStreamWrapper From: Paul Hunnisett To: Tomcat Developers List In-Reply-To: <3DD0456F.80308@cs.stanford.edu> References: <1037013288.3440.3.camel@kirstine.lombok.org.uk> <3DD0456F.80308@cs.stanford.edu> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8-3mdk Date: 12 Nov 2002 10:13:53 +0000 Message-Id: <1037096034.2682.1.camel@kirstine.lombok.org.uk> Mime-Version: 1.0 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N The main reason I was looking at this class in the first place was to try to find a good way of overriding the write(int) method of OutputStream in a server context. Is there another class which extends ServletOutputStream and would give me a more real world example? On Tue, 2002-11-12 at 00:03, Dan Sandberg wrote: > Hi Paul. > > That class is specific to the server-side include code, so the server > doesn't need to know anything about the writeTo method. > > Basically, the ServletOutputStreamWrapper is used so that we can capture > the result of Tomcat processing a page, so that we may include the > contents of one page within another. > > o.a.c.servlets.SsiInvokerServlet calls the writeTo method. If you have > any questions after looking at the source-code, let us know. > > >Is anyone familiar with this class? > > Yup. > > -Dan > > Paul Hunnisett wrote: > > >I have been examining the source code for > >org.apache.catalina.util.ssi.ServletOutputStreamWrapper and I discovered > >a writeTo() method that writes the current buffer to the OutputStream. > >What I can't quite see is how this method would be called. It is not > >part of the servlet spec, so the web application won't be calling it. > >So I assume that the server calls it, but how does the server know when > >to write the buffer out? > > > >Any information would be appreciated. > > > >Paul Hunnisett > > > > > > > > > > > >-- > >To unsubscribe, e-mail: > >For additional commands, e-mail: > > > > > > > > > > > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: > -- To unsubscribe, e-mail: For additional commands, e-mail: