comparison src/org/eclipse/jetty/http/HttpGenerator.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 fef4392f4905
comparison
equal deleted inserted replaced
819:17bd0b170ed6 820:8e9db0bbf4f9
27 import org.eclipse.jetty.io.Buffers; 27 import org.eclipse.jetty.io.Buffers;
28 import org.eclipse.jetty.io.ByteArrayBuffer; 28 import org.eclipse.jetty.io.ByteArrayBuffer;
29 import org.eclipse.jetty.io.EndPoint; 29 import org.eclipse.jetty.io.EndPoint;
30 import org.eclipse.jetty.io.EofException; 30 import org.eclipse.jetty.io.EofException;
31 import org.eclipse.jetty.util.StringUtil; 31 import org.eclipse.jetty.util.StringUtil;
32 import org.eclipse.jetty.util.log.Log; 32 import org.slf4j.Logger;
33 import org.eclipse.jetty.util.log.Logger; 33 import org.slf4j.LoggerFactory;
34 34
35 /* ------------------------------------------------------------ */ 35 /* ------------------------------------------------------------ */
36 /** 36 /**
37 * HttpGenerator. Builds HTTP Messages. 37 * HttpGenerator. Builds HTTP Messages.
38 * 38 *
39 * 39 *
40 * 40 *
41 */ 41 */
42 public class HttpGenerator extends AbstractGenerator 42 public class HttpGenerator extends AbstractGenerator
43 { 43 {
44 private static final Logger LOG = Log.getLogger(HttpGenerator.class); 44 private static final Logger LOG = LoggerFactory.getLogger(HttpGenerator.class);
45 45
46 // Build cache of response lines for status 46 // Build cache of response lines for status
47 private static class Status 47 private static class Status
48 { 48 {
49 Buffer _reason; 49 Buffer _reason;
138 { 138 {
139 _endp.shutdownOutput(); 139 _endp.shutdownOutput();
140 } 140 }
141 catch(IOException e) 141 catch(IOException e)
142 { 142 {
143 LOG.ignore(e); 143 LOG.trace("",e);
144 } 144 }
145 } 145 }
146 super.reset(); 146 super.reset();
147 if (_buffer!=null) 147 if (_buffer!=null)
148 _buffer.clear(); 148 _buffer.clear();
336 Thread.sleep(100); 336 Thread.sleep(100);
337 } 337 }
338 } 338 }
339 catch(InterruptedException e) 339 catch(InterruptedException e)
340 { 340 {
341 LOG.debug(e); 341 LOG.debug("",e);
342 throw new InterruptedIOException(e.toString()); 342 throw new InterruptedIOException(e.toString());
343 } 343 }
344 } 344 }
345 345
346 /* ------------------------------------------------------------ */ 346 /* ------------------------------------------------------------ */
908 908
909 return total; 909 return total;
910 } 910 }
911 catch (IOException e) 911 catch (IOException e)
912 { 912 {
913 LOG.ignore(e); 913 LOG.trace("",e);
914 throw (e instanceof EofException) ? e:new EofException(e); 914 throw (e instanceof EofException) ? e:new EofException(e);
915 } 915 }
916 } 916 }
917 917
918 /* ------------------------------------------------------------ */ 918 /* ------------------------------------------------------------ */