config-servlet/src/main/java/org/ocpsoft/rewrite/servlet/config/Response.java
public static OperationBuilder gzipCompression()
   {
      return new Response() {

         @Override
         public void performHttp(HttpServletRewrite event, EvaluationContext context)
         {
            withOutputInterceptedBy(new GZipResponseContentInterceptor()).perform(event, context);
         }

         @Override
         public String toString()
         {
            return "Response.gzipCompression()";
         }

      };
   }
public static OperationBuilder gzipCompression()
   {
      return new Response() {

         @Override
         public void performHttp(HttpServletRewrite event, EvaluationContext context)
         {
            withOutputInterceptedBy(new GZipResponseContentInterceptor()).perform(event, context);
         }

         @Override
         public String toString()
         {
            return "Response.gzipCompression()";
         }

      };
   }
public static OperationBuilder gzipCompression ( ) { return new Response ( ) { @ Override public void performHttp ( HttpServletRewrite event , EvaluationContext context ) { withOutputInterceptedBy ( new GZipResponseContentInterceptor ( ) ) . perform ( event , context ) ; } @ Override public String toString ( ) { return "Response.gzipCompression()" ; } } ; }
Compress the {@link ServletOutputStream} contents written to the client.
<p>
<b>WARNING</b>: This causes response content to be buffered in memory in order to properly count the response
'Content-Length'.
Compress the {