Mercurial Hosting > luan
comparison src/org/eclipse/jetty/http/HttpFields.java @ 855:fa6158f29c45
remove BufferDateCache and DateCache
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 20 Sep 2016 21:38:44 -0600 |
parents | 86338c0029a9 |
children | f126d30e04a4 |
comparison
equal
deleted
inserted
replaced
854:359012f4e797 | 855:fa6158f29c45 |
---|---|
40 import java.util.concurrent.ConcurrentMap; | 40 import java.util.concurrent.ConcurrentMap; |
41 | 41 |
42 import org.eclipse.jetty.io.Buffer; | 42 import org.eclipse.jetty.io.Buffer; |
43 import org.eclipse.jetty.io.BufferCache; | 43 import org.eclipse.jetty.io.BufferCache; |
44 import org.eclipse.jetty.io.BufferCache.CachedBuffer; | 44 import org.eclipse.jetty.io.BufferCache.CachedBuffer; |
45 import org.eclipse.jetty.io.BufferDateCache; | |
46 import org.eclipse.jetty.io.BufferUtil; | 45 import org.eclipse.jetty.io.BufferUtil; |
47 import org.eclipse.jetty.io.ByteArrayBuffer; | 46 import org.eclipse.jetty.io.ByteArrayBuffer; |
48 import org.eclipse.jetty.util.LazyList; | 47 import org.eclipse.jetty.util.LazyList; |
49 import org.eclipse.jetty.util.QuotedStringTokenizer; | 48 import org.eclipse.jetty.util.QuotedStringTokenizer; |
50 import org.eclipse.jetty.util.StringUtil; | 49 import org.eclipse.jetty.util.StringUtil; |
65 private static final Logger LOG = LoggerFactory.getLogger(HttpFields.class); | 64 private static final Logger LOG = LoggerFactory.getLogger(HttpFields.class); |
66 | 65 |
67 /* ------------------------------------------------------------ */ | 66 /* ------------------------------------------------------------ */ |
68 public static final String __COOKIE_DELIM="\"\\\n\r\t\f\b%+ ;="; | 67 public static final String __COOKIE_DELIM="\"\\\n\r\t\f\b%+ ;="; |
69 public static final TimeZone __GMT = TimeZone.getTimeZone("GMT"); | 68 public static final TimeZone __GMT = TimeZone.getTimeZone("GMT"); |
70 public static final BufferDateCache __dateCache = new BufferDateCache("EEE, dd MMM yyyy HH:mm:ss 'GMT'", Locale.US); | |
71 | |
72 /* -------------------------------------------------------------- */ | |
73 static | |
74 { | |
75 __GMT.setID("GMT"); | |
76 __dateCache.setTimeZone(__GMT); | |
77 } | |
78 | 69 |
79 /* ------------------------------------------------------------ */ | 70 /* ------------------------------------------------------------ */ |
80 private static final String[] DAYS = | 71 private static final String[] DAYS = |
81 { "Sat", "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"}; | 72 { "Sat", "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"}; |
82 private static final String[] MONTHS = | 73 private static final String[] MONTHS = |