Yes, yes there is.  I've never done it, but it's the kind of thing that
netty should be able to do easily.

Something like
http://stackoverflow.com/questions/8605519/how-to-use-netty-deflator-to-compress-the-response-sent-to-browser
.