ServletRequestWrapper or ServletResponseWrapper in production?

Hi, did you see anything really useful extension HttpServletResponseWrapper/ HttpServletRequestWrapperor ServletRequestWrapper/ ServletResponseWrapperin the production environment?

+3
source share
5 answers
  • crop space from generated HTML can save over 50% of bandwidth. I had a project that displays large tabular data (with a nice indented HTML source), the response size is from ~ 200 KB to ~ 70 KB, just trimming all the spaces.
  • multipart/form-data, , request.getParameter() (Servlet <= 2.5 example, Servlet >= 3.0 ).
  • , MD5-.
  • URL.

Etcetera.. Etcetera.. HttpServletRequest/HttpServletResponse.

+3

"" JSP, . getWriter()/getOutputStream().

SiteMesh , "", .

+3

  • getRemoteAddr() X-Forwarded-For X-Real-IP ( nginx)

  • , .

  • gzip response

+2
  • (richfaces, myfaces )

  • Spring ContextExposingHttpServletRequest, spring beans .

  • myfaces URL-,

+2

(getHeaderNames() getHeader() Servlet 3.0.

, getOutputStream(), OutputStream, , , , .

+2

Source: https://habr.com/ru/post/1733146/


All Articles