Class HttpServletResponseOutputWrapper

All Implemented Interfaces:
HttpServletResponse, ServletResponse
Direct Known Subclasses:
BufferedHttpServletResponse, CompressedHttpServletResponse

public abstract class HttpServletResponseOutputWrapper extends HttpServletResponseWrapper
Convenience class for extending HttpServletResponseWrapper wherein the servlet response OutputStream has to be replaced by a custom implementation. This saves the developer from writing repeated getOutputStream(), getWriter() and flushBuffer() boilerplate. All the developer has to do is to implement the createOutputStream() accordingly. This will in turn be used by both getOutputStream() and getWriter().

The boolean property passThrough, which defaults to false also enables the developer to control whether to pass through to the wrapped ServletOutputStream or not.

Since:
1.1
Author:
Bauke Scholtz