rewrite-api-servlet 2.0.0.Alpha6

org.ocpsoft.rewrite.servlet.config.response
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
 OutputStream wrap(HttpServletRewrite rewrite, OutputStream outputStream)
          Wrap the OutputStream for the current HttpServletResponse.
 

Method Detail

wrap

OutputStream wrap(HttpServletRewrite rewrite,
                  OutputStream outputStream)
Wrap the OutputStream for the current HttpServletResponse.


rewrite-api-servlet 2.0.0.Alpha6

Copyright © 2013 OCPsoft. All Rights Reserved.