diff src/org/eclipse/jetty/http/HttpHeaderValues.java @ 999:74b9daf2826c

simplify Response
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 19 Oct 2016 00:59:46 -0600
parents 3428c60d7cfc
children 6be43ef1eb96
line wrap: on
line diff
--- a/src/org/eclipse/jetty/http/HttpHeaderValues.java	Tue Oct 18 23:01:00 2016 -0600
+++ b/src/org/eclipse/jetty/http/HttpHeaderValues.java	Wed Oct 19 00:59:46 2016 -0600
@@ -32,57 +32,57 @@
  */
 public class HttpHeaderValues extends BufferCache
 {
-    public final static String
-        CLOSE="close",
-        CHUNKED="chunked",
-        GZIP="gzip",
-        IDENTITY="identity",
-        KEEP_ALIVE="keep-alive",
-        CONTINUE="100-continue",
-        PROCESSING="102-processing",
-        TE="TE",
-        BYTES="bytes",
-        NO_CACHE="no-cache",
-        UPGRADE="Upgrade";
+	public final static String
+		CLOSE="close",
+		CHUNKED="chunked",
+		GZIP="gzip",
+		IDENTITY="identity",
+		KEEP_ALIVE="keep-alive",
+		CONTINUE="100-continue",
+		PROCESSING="102-processing",
+		TE="TE",
+		BYTES="bytes",
+		NO_CACHE="no-cache",
+		UPGRADE="Upgrade";
 
-    public final static int
-        CLOSE_ORDINAL=1,
-        CHUNKED_ORDINAL=2,
-        GZIP_ORDINAL=3,
-        IDENTITY_ORDINAL=4,
-        KEEP_ALIVE_ORDINAL=5,
-        CONTINUE_ORDINAL=6,
-        PROCESSING_ORDINAL=7,
-        TE_ORDINAL=8,
-        BYTES_ORDINAL=9,
-        NO_CACHE_ORDINAL=10,
-        UPGRADE_ORDINAL=11;
-    
-    public final static HttpHeaderValues CACHE= new HttpHeaderValues();
+	public final static int
+		CLOSE_ORDINAL=1,
+		CHUNKED_ORDINAL=2,
+		GZIP_ORDINAL=3,
+		IDENTITY_ORDINAL=4,
+		KEEP_ALIVE_ORDINAL=5,
+		CONTINUE_ORDINAL=6,
+		PROCESSING_ORDINAL=7,
+		TE_ORDINAL=8,
+		BYTES_ORDINAL=9,
+		NO_CACHE_ORDINAL=10,
+		UPGRADE_ORDINAL=11;
+	
+	public final static HttpHeaderValues CACHE = new HttpHeaderValues();
 
-    public final static Buffer 
-        CLOSE_BUFFER=CACHE.add(CLOSE,CLOSE_ORDINAL),
-        CHUNKED_BUFFER=CACHE.add(CHUNKED,CHUNKED_ORDINAL),
-        GZIP_BUFFER=CACHE.add(GZIP,GZIP_ORDINAL),
-        IDENTITY_BUFFER=CACHE.add(IDENTITY,IDENTITY_ORDINAL),
-        KEEP_ALIVE_BUFFER=CACHE.add(KEEP_ALIVE,KEEP_ALIVE_ORDINAL),
-        CONTINUE_BUFFER=CACHE.add(CONTINUE, CONTINUE_ORDINAL),
-        PROCESSING_BUFFER=CACHE.add(PROCESSING, PROCESSING_ORDINAL),
-        TE_BUFFER=CACHE.add(TE,TE_ORDINAL),
-        BYTES_BUFFER=CACHE.add(BYTES,BYTES_ORDINAL),
-        NO_CACHE_BUFFER=CACHE.add(NO_CACHE,NO_CACHE_ORDINAL),
-        UPGRADE_BUFFER=CACHE.add(UPGRADE,UPGRADE_ORDINAL);
-        
+	public final static Buffer 
+		CLOSE_BUFFER=CACHE.add(CLOSE,CLOSE_ORDINAL),
+		CHUNKED_BUFFER=CACHE.add(CHUNKED,CHUNKED_ORDINAL),
+		GZIP_BUFFER=CACHE.add(GZIP,GZIP_ORDINAL),
+		IDENTITY_BUFFER=CACHE.add(IDENTITY,IDENTITY_ORDINAL),
+		KEEP_ALIVE_BUFFER=CACHE.add(KEEP_ALIVE,KEEP_ALIVE_ORDINAL),
+		CONTINUE_BUFFER=CACHE.add(CONTINUE, CONTINUE_ORDINAL),
+		PROCESSING_BUFFER=CACHE.add(PROCESSING, PROCESSING_ORDINAL),
+		TE_BUFFER=CACHE.add(TE,TE_ORDINAL),
+		BYTES_BUFFER=CACHE.add(BYTES,BYTES_ORDINAL),
+		NO_CACHE_BUFFER=CACHE.add(NO_CACHE,NO_CACHE_ORDINAL),
+		UPGRADE_BUFFER=CACHE.add(UPGRADE,UPGRADE_ORDINAL);
+		
 
-    public static boolean hasKnownValues(int httpHeaderOrdinal)
-    {
-        switch(httpHeaderOrdinal)
-        {
-            case HttpHeaders.CONNECTION_ORDINAL:
-            case HttpHeaders.TRANSFER_ENCODING_ORDINAL:
-            case HttpHeaders.CONTENT_ENCODING_ORDINAL:
-                return true;
-        }
-        return false;
-    }
+	public static boolean hasKnownValues(int httpHeaderOrdinal)
+	{
+		switch(httpHeaderOrdinal)
+		{
+			case HttpHeaders.CONNECTION_ORDINAL:
+			case HttpHeaders.TRANSFER_ENCODING_ORDINAL:
+			case HttpHeaders.CONTENT_ENCODING_ORDINAL:
+				return true;
+		}
+		return false;
+	}
 }