comparison src/org/eclipse/jetty/server/handler/GzipHandler.java @ 820:8e9db0bbf4f9

remove org.eclipse.jetty.util.log and upgrade slf4j
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 13 Sep 2016 23:13:06 -0600
parents 3428c60d7cfc
children 4de7f6e9c453
comparison
equal deleted inserted replaced
819:17bd0b170ed6 820:8e9db0bbf4f9
38 import org.eclipse.jetty.continuation.ContinuationSupport; 38 import org.eclipse.jetty.continuation.ContinuationSupport;
39 import org.eclipse.jetty.http.HttpMethods; 39 import org.eclipse.jetty.http.HttpMethods;
40 import org.eclipse.jetty.http.gzip.CompressedResponseWrapper; 40 import org.eclipse.jetty.http.gzip.CompressedResponseWrapper;
41 import org.eclipse.jetty.http.gzip.AbstractCompressedStream; 41 import org.eclipse.jetty.http.gzip.AbstractCompressedStream;
42 import org.eclipse.jetty.server.Request; 42 import org.eclipse.jetty.server.Request;
43 import org.eclipse.jetty.util.log.Log; 43 import org.slf4j.Logger;
44 import org.eclipse.jetty.util.log.Logger; 44 import org.slf4j.LoggerFactory;
45 45
46 /* ------------------------------------------------------------ */ 46 /* ------------------------------------------------------------ */
47 /** 47 /**
48 * GZIP Handler This handler will gzip the content of a response if: 48 * GZIP Handler This handler will gzip the content of a response if:
49 * <ul> 49 * <ul>
60 * then use of efficient direct NIO may be prevented, thus use of the gzip mechanism of the <code>org.eclipse.jetty.servlet.DefaultServlet</code> is advised instead. 60 * then use of efficient direct NIO may be prevented, thus use of the gzip mechanism of the <code>org.eclipse.jetty.servlet.DefaultServlet</code> is advised instead.
61 * </p> 61 * </p>
62 */ 62 */
63 public class GzipHandler extends HandlerWrapper 63 public class GzipHandler extends HandlerWrapper
64 { 64 {
65 private static final Logger LOG = Log.getLogger(GzipHandler.class); 65 private static final Logger LOG = LoggerFactory.getLogger(GzipHandler.class);
66 66
67 protected Set<String> _mimeTypes; 67 protected Set<String> _mimeTypes;
68 protected Set<String> _excluded; 68 protected Set<String> _excluded;
69 protected int _bufferSize = 8192; 69 protected int _bufferSize = 8192;
70 protected int _minGzipSize = 256; 70 protected int _minGzipSize = 256;
277 { 277 {
278 wrappedResponse.finish(); 278 wrappedResponse.finish();
279 } 279 }
280 catch(IOException e) 280 catch(IOException e)
281 { 281 {
282 LOG.warn(e); 282 LOG.warn("",e);
283 } 283 }
284 } 284 }
285 285
286 public void onTimeout(Continuation continuation) 286 public void onTimeout(Continuation continuation)
287 {} 287 {}