comparison src/org/eclipse/jetty/server/AsyncHttpConnection.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 3268ddf919d4
comparison
equal deleted inserted replaced
819:17bd0b170ed6 820:8e9db0bbf4f9
25 import org.eclipse.jetty.io.AsyncEndPoint; 25 import org.eclipse.jetty.io.AsyncEndPoint;
26 import org.eclipse.jetty.io.Connection; 26 import org.eclipse.jetty.io.Connection;
27 import org.eclipse.jetty.io.EndPoint; 27 import org.eclipse.jetty.io.EndPoint;
28 import org.eclipse.jetty.io.nio.AsyncConnection; 28 import org.eclipse.jetty.io.nio.AsyncConnection;
29 import org.eclipse.jetty.io.nio.SelectChannelEndPoint; 29 import org.eclipse.jetty.io.nio.SelectChannelEndPoint;
30 import org.eclipse.jetty.util.log.Log; 30 import org.slf4j.Logger;
31 import org.eclipse.jetty.util.log.Logger; 31 import org.slf4j.LoggerFactory;
32 32
33 33
34 /* ------------------------------------------------------------ */ 34 /* ------------------------------------------------------------ */
35 /** Asychronous Server HTTP connection 35 /** Asychronous Server HTTP connection
36 * 36 *
38 public class AsyncHttpConnection extends AbstractHttpConnection implements AsyncConnection 38 public class AsyncHttpConnection extends AbstractHttpConnection implements AsyncConnection
39 { 39 {
40 private final static int NO_PROGRESS_INFO = Integer.getInteger("org.mortbay.jetty.NO_PROGRESS_INFO",100); 40 private final static int NO_PROGRESS_INFO = Integer.getInteger("org.mortbay.jetty.NO_PROGRESS_INFO",100);
41 private final static int NO_PROGRESS_CLOSE = Integer.getInteger("org.mortbay.jetty.NO_PROGRESS_CLOSE",200); 41 private final static int NO_PROGRESS_CLOSE = Integer.getInteger("org.mortbay.jetty.NO_PROGRESS_CLOSE",200);
42 42
43 private static final Logger LOG = Log.getLogger(AsyncHttpConnection.class); 43 private static final Logger LOG = LoggerFactory.getLogger(AsyncHttpConnection.class);
44 private int _total_no_progress; 44 private int _total_no_progress;
45 private final AsyncEndPoint _asyncEndp; 45 private final AsyncEndPoint _asyncEndp;
46 private boolean _readInterested = true; 46 private boolean _readInterested = true;
47 47
48 public AsyncHttpConnection(Connector connector, EndPoint endpoint, Server server) 48 public AsyncHttpConnection(Connector connector, EndPoint endpoint, Server server)
98 { 98 {
99 if (LOG.isDebugEnabled()) 99 if (LOG.isDebugEnabled())
100 { 100 {
101 LOG.debug("uri="+_uri); 101 LOG.debug("uri="+_uri);
102 LOG.debug("fields="+_requestFields); 102 LOG.debug("fields="+_requestFields);
103 LOG.debug(e); 103 LOG.debug("",e);
104 } 104 }
105 progress=true; 105 progress=true;
106 _generator.sendError(e.getStatus(), e.getReason(), null, true); 106 _generator.sendError(e.getStatus(), e.getReason(), null, true);
107 } 107 }
108 finally 108 finally