rewrite-api-servlet 2.0.0.Beta2

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
 void finish(HttpServletRewrite rewrite)
          Perform necessary final operations on the OutputStream for the current HttpServletRewrite.
 OutputStream wrap(HttpServletRewrite rewrite, OutputStream outputStream)
          Wrap the OutputStream for the current HttpServletRewrite.
 

Method Detail

wrap

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


finish

void finish(HttpServletRewrite rewrite)
Perform necessary final operations on the OutputStream for the current HttpServletRewrite.


rewrite-api-servlet 2.0.0.Beta2

Copyright © 2013 OCPsoft. All Rights Reserved.