Interface ResponseStreamWrapper
public interface ResponseStreamWrapper
A wrapper for the
HttpServletResponse content OutputStream. This should be used in favor of
ResponseContentInterceptor whenever possible to avoid buffering the entire response in memory.
NOTICE: Stream wrapping must be configured before any content or headers have been written to the
ServletResponse.
- Author:
- Lincoln Baxter, III
-
Method Summary
Modifier and TypeMethodDescriptionvoidfinish(HttpServletRewrite rewrite) Perform necessary final operations on theOutputStreamfor the currentHttpServletRewrite.wrap(HttpServletRewrite rewrite, OutputStream outputStream) Wrap theOutputStreamfor the currentHttpServletRewrite.
-
Method Details
-
wrap
Wrap theOutputStreamfor the currentHttpServletRewrite. -
finish
Perform necessary final operations on theOutputStreamfor the currentHttpServletRewrite.
-