Mercurial Hosting > luan
comparison src/org/eclipse/jetty/server/BlockingHttpConnection.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 | ad495e897c32 |
comparison
equal
deleted
inserted
replaced
819:17bd0b170ed6 | 820:8e9db0bbf4f9 |
---|---|
24 import org.eclipse.jetty.http.HttpException; | 24 import org.eclipse.jetty.http.HttpException; |
25 import org.eclipse.jetty.http.HttpStatus; | 25 import org.eclipse.jetty.http.HttpStatus; |
26 import org.eclipse.jetty.http.Parser; | 26 import org.eclipse.jetty.http.Parser; |
27 import org.eclipse.jetty.io.Connection; | 27 import org.eclipse.jetty.io.Connection; |
28 import org.eclipse.jetty.io.EndPoint; | 28 import org.eclipse.jetty.io.EndPoint; |
29 import org.eclipse.jetty.util.log.Log; | 29 import org.slf4j.Logger; |
30 import org.eclipse.jetty.util.log.Logger; | 30 import org.slf4j.LoggerFactory; |
31 | 31 |
32 | 32 |
33 /* ------------------------------------------------------------ */ | 33 /* ------------------------------------------------------------ */ |
34 /** Blocking Server HTTP Connection | 34 /** Blocking Server HTTP Connection |
35 */ | 35 */ |
36 public class BlockingHttpConnection extends AbstractHttpConnection | 36 public class BlockingHttpConnection extends AbstractHttpConnection |
37 { | 37 { |
38 private static final Logger LOG = Log.getLogger(BlockingHttpConnection.class); | 38 private static final Logger LOG = LoggerFactory.getLogger(BlockingHttpConnection.class); |
39 | 39 |
40 public BlockingHttpConnection(Connector connector, EndPoint endpoint, Server server) | 40 public BlockingHttpConnection(Connector connector, EndPoint endpoint, Server server) |
41 { | 41 { |
42 super(connector,endpoint,server); | 42 super(connector,endpoint,server); |
43 } | 43 } |
85 { | 85 { |
86 if (LOG.isDebugEnabled()) | 86 if (LOG.isDebugEnabled()) |
87 { | 87 { |
88 LOG.debug("uri="+_uri); | 88 LOG.debug("uri="+_uri); |
89 LOG.debug("fields="+_requestFields); | 89 LOG.debug("fields="+_requestFields); |
90 LOG.debug(e); | 90 LOG.debug("",e); |
91 } | 91 } |
92 _generator.sendError(e.getStatus(), e.getReason(), null, true); | 92 _generator.sendError(e.getStatus(), e.getReason(), null, true); |
93 _parser.reset(); | 93 _parser.reset(); |
94 _endp.shutdownOutput(); | 94 _endp.shutdownOutput(); |
95 } | 95 } |