Java – servletrequestwrapper or servletresponsewrapper in production?

Have you seen anything useful to extend httpservletresponsewrapper / httpservletrequestwrapper or servletrequestwrapper / servletresponsewrapper in a production environment?

Solution

>Trim whitespace can save more than 50% bandwidth from the generated HTML I have a project that displays large table data (with good indented HTML source code). The response size ranges from about 200KB to about 70kb. Just trim all spaces

Etcetera .. Etcetera .. All are to override and change the default behavior of some HttpServletRequest / httpservletresponse methods

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>