Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Response Wrapper  RSS feed

Kin Ng
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Thank you for looking at my post.
It's great if you guys would give me some ideas on the following.

In the Compression wrapper code (HFS&J pg692), I assume that the servlet is unable to send the response straight to the client, because one would need to call finish() on the internalGzipOS in order to do so. Am I right?

If that's true, does it mean that if we want to perform post-servlet-processing, we would always have to wrap the outputstream with something that needs an extra method call to flush?

Thank you all for your time,


  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!