O'Reilly logo

Head First Servlets and JSP, 2nd Edition by Bert Bates, Bryan Basham, Kathy Sierra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Compression wrapper code

We looked at the Compression filter; now let’s take a look at the wrapper it uses. This is one of the most complicated topics in all of servlet-dom, so don’t panic if you don’t grok it the first time.

This response wrapper decorates the original response object by adding a compression decorator on the original servlet output stream.

image with no caption
image with no caption

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required