The Java servlet API supports response buffering that allows the servlet to control how the servlet container buffers responses, and when to send a response to a client. The ServletResponse interface provides these methods that allow a servlet to access buffering information:
getBufferSize – returns the size of the response buffer; if buffering is not used, returns integer value of zero.
setBufferSize – sets buffer size greater than or equal to the servlet’s request.
isCommitted – returns a boolean value to indicate whether any part of the response has been returned to the client.
reset – clears the buffer of an uncommitted response.
flushBuffer – writes buffer contents to a client.
See the Java Servlet Specification, v2.3 for detailed information about using response buffering.
Copyright © 2005. Sybase Inc. All rights reserved. |