tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Hunnisett <deve...@lombok.org.uk>
Subject Re: ServletOutputStreamWrapper
Date Tue, 12 Nov 2002 10:30:03 GMT
Actually, a good example of a ServletInputStream subclass with a read()
implementation would be helpful too.  I am trying to find al lthese
examples in the source, but am haviong limited success tracking down the
appropriate classes

On Tue, 2002-11-12 at 10:13, Paul Hunnisett wrote:
> 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:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
> > >For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>
> > >
> > >
> > >  
> > >
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>
> > 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>
> 




--
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