Using method superWrite() instead of super.write().

This commit is contained in:
Simone Bordet 2014-09-18 15:13:50 +02:00
parent 418a493337
commit b74c6d1b8d
1 changed files with 6 additions and 6 deletions

View File

@ -24,10 +24,10 @@ import java.util.concurrent.atomic.AtomicReference;
import java.util.zip.CRC32; import java.util.zip.CRC32;
import java.util.zip.Deflater; import java.util.zip.Deflater;
import org.eclipse.jetty.http.PreEncodedHttpField;
import org.eclipse.jetty.http.HttpFields; import org.eclipse.jetty.http.HttpFields;
import org.eclipse.jetty.http.HttpHeader; import org.eclipse.jetty.http.HttpHeader;
import org.eclipse.jetty.http.MimeTypes; import org.eclipse.jetty.http.MimeTypes;
import org.eclipse.jetty.http.PreEncodedHttpField;
import org.eclipse.jetty.server.HttpChannel; import org.eclipse.jetty.server.HttpChannel;
import org.eclipse.jetty.server.HttpOutput; import org.eclipse.jetty.server.HttpOutput;
import org.eclipse.jetty.server.Response; import org.eclipse.jetty.server.Response;
@ -71,7 +71,7 @@ public class GzipHttpOutput extends HttpOutput
switch (_state.get()) switch (_state.get())
{ {
case NOT_COMPRESSING: case NOT_COMPRESSING:
super.write(content,complete,callback); superWrite(content, complete, callback);
return; return;
case MIGHT_COMPRESS: case MIGHT_COMPRESS:
@ -138,7 +138,7 @@ public class GzipHttpOutput extends HttpOutput
{ {
LOG.debug("{} exclude by status {}",this,sc); LOG.debug("{} exclude by status {}",this,sc);
noCompression(); noCompression();
super.write(content,complete,callback); superWrite(content, complete, callback);
return; return;
} }
@ -151,7 +151,7 @@ public class GzipHttpOutput extends HttpOutput
{ {
LOG.debug("{} exclude by mimeType {}",this,ct); LOG.debug("{} exclude by mimeType {}",this,ct);
noCompression(); noCompression();
super.write(content,complete,callback); superWrite(content, complete, callback);
return; return;
} }
} }
@ -162,7 +162,7 @@ public class GzipHttpOutput extends HttpOutput
{ {
LOG.debug("{} exclude by content-encoding {}",this,ce); LOG.debug("{} exclude by content-encoding {}",this,ce);
noCompression(); noCompression();
super.write(content,complete,callback); superWrite(content, complete, callback);
return; return;
} }
@ -183,7 +183,7 @@ public class GzipHttpOutput extends HttpOutput
{ {
LOG.debug("{} exclude no deflater",this); LOG.debug("{} exclude no deflater",this);
_state.set(GZState.NOT_COMPRESSING); _state.set(GZState.NOT_COMPRESSING);
super.write(content,complete,callback); superWrite(content, complete, callback);
return; return;
} }