SRV.6.5 Closure of Response Object


A number of events can indicate that the servlet has provided all of the content to satisfy the request and that the response object can be considered to be closed. The events are:

  • The termination of the service method of the servlet.

  • When the amount of content specified in the setContentLength method of the response has been written to the response.

  • The sendError method is called.

  • The sendRedirect method is called.

When a response is closed, all content in the response buffer, if any remains, must be immediately flushed to the client.



Java 2 Platform, Enterprise Edition. Platform and Component Specifications
Java 2 Platform, Enterprise Edition: Platform and Component Specifications
ISBN: 0201704560
EAN: 2147483647
Year: 2000
Pages: 399

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net