Mercurial Hosting > luan
diff src/org/eclipse/jetty/http/HttpVersions.java @ 1019:f126d30e04a4
start replacing BufferCache with StringCache
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 31 Oct 2016 03:33:42 -0600 |
parents | 3428c60d7cfc |
children |
line wrap: on
line diff
--- a/src/org/eclipse/jetty/http/HttpVersions.java Mon Oct 24 05:37:24 2016 -0600 +++ b/src/org/eclipse/jetty/http/HttpVersions.java Mon Oct 31 03:33:42 2016 -0600 @@ -18,15 +18,10 @@ package org.eclipse.jetty.http; -import org.eclipse.jetty.io.Buffer; -import org.eclipse.jetty.io.BufferCache; +import org.eclipse.jetty.io.StringCache; -/* ------------------------------------------------------------------------------- */ -/** - * - * - */ -public class HttpVersions + +public final class HttpVersions { public final static String HTTP_0_9 = "", @@ -38,10 +33,10 @@ HTTP_1_0_ORDINAL=10, HTTP_1_1_ORDINAL=11; - public final static BufferCache CACHE = new BufferCache(); + public final static StringCache CACHE = new StringCache(); - public final static Buffer - HTTP_0_9_BUFFER=CACHE.add(HTTP_0_9,HTTP_0_9_ORDINAL), - HTTP_1_0_BUFFER=CACHE.add(HTTP_1_0,HTTP_1_0_ORDINAL), - HTTP_1_1_BUFFER=CACHE.add(HTTP_1_1,HTTP_1_1_ORDINAL); + public final static byte[] + HTTP_0_9_BYTES=CACHE.add(HTTP_0_9,HTTP_0_9_ORDINAL), + HTTP_1_0_BYTES=CACHE.add(HTTP_1_0,HTTP_1_0_ORDINAL), + HTTP_1_1_BYTES=CACHE.add(HTTP_1_1,HTTP_1_1_ORDINAL); }