comparison src/org/eclipse/jetty/http/HttpFields.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 86338c0029a9
comparison
equal deleted inserted replaced
819:17bd0b170ed6 820:8e9db0bbf4f9
47 import org.eclipse.jetty.io.ByteArrayBuffer; 47 import org.eclipse.jetty.io.ByteArrayBuffer;
48 import org.eclipse.jetty.util.LazyList; 48 import org.eclipse.jetty.util.LazyList;
49 import org.eclipse.jetty.util.QuotedStringTokenizer; 49 import org.eclipse.jetty.util.QuotedStringTokenizer;
50 import org.eclipse.jetty.util.StringMap; 50 import org.eclipse.jetty.util.StringMap;
51 import org.eclipse.jetty.util.StringUtil; 51 import org.eclipse.jetty.util.StringUtil;
52 import org.eclipse.jetty.util.log.Log; 52 import org.slf4j.Logger;
53 import org.eclipse.jetty.util.log.Logger; 53 import org.slf4j.LoggerFactory;
54 54
55 /* ------------------------------------------------------------ */ 55 /* ------------------------------------------------------------ */
56 /** 56 /**
57 * HTTP Fields. A collection of HTTP header and or Trailer fields. 57 * HTTP Fields. A collection of HTTP header and or Trailer fields.
58 * 58 *
61 * 61 *
62 * 62 *
63 */ 63 */
64 public class HttpFields 64 public class HttpFields
65 { 65 {
66 private static final Logger LOG = Log.getLogger(HttpFields.class); 66 private static final Logger LOG = LoggerFactory.getLogger(HttpFields.class);
67 67
68 /* ------------------------------------------------------------ */ 68 /* ------------------------------------------------------------ */
69 public static final String __COOKIE_DELIM="\"\\\n\r\t\f\b%+ ;="; 69 public static final String __COOKIE_DELIM="\"\\\n\r\t\f\b%+ ;=";
70 public static final TimeZone __GMT = TimeZone.getTimeZone("GMT"); 70 public static final TimeZone __GMT = TimeZone.getTimeZone("GMT");
71 public static final BufferDateCache __dateCache = new BufferDateCache("EEE, dd MMM yyyy HH:mm:ss 'GMT'", Locale.US); 71 public static final BufferDateCache __dateCache = new BufferDateCache("EEE, dd MMM yyyy HH:mm:ss 'GMT'", Locale.US);
1091 buffer.append("\r\n"); 1091 buffer.append("\r\n");
1092 return buffer.toString(); 1092 return buffer.toString();
1093 } 1093 }
1094 catch (Exception e) 1094 catch (Exception e)
1095 { 1095 {
1096 LOG.warn(e); 1096 LOG.warn("",e);
1097 return e.toString(); 1097 return e.toString();
1098 } 1098 }
1099 } 1099 }
1100 1100
1101 /* ------------------------------------------------------------ */ 1101 /* ------------------------------------------------------------ */