1 //========================================================================
2 //$Id: HttpTokens.java,v 1.1 2005/10/05 14:09:21 janb Exp $
3 //Copyright 2004-2005 Mort Bay Consulting Pty. Ltd.
4 //------------------------------------------------------------------------
5 //Licensed under the Apache License, Version 2.0 (the "License");
6 //you may not use this file except in compliance with the License.
7 //You may obtain a copy of the License at
8 //http://www.apache.org/licenses/LICENSE-2.0
9 //Unless required by applicable law or agreed to in writing, software
10 //distributed under the License is distributed on an "AS IS" BASIS,
11 //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 //See the License for the specific language governing permissions and
13 //limitations under the License.
14 //========================================================================
15
16 package org.mortbay.jetty;
17
18 /**
19 * HTTP constants
20 */
21 public interface HttpTokens
22 {
23 // Terminal symbols.
24 static final byte COLON= (byte)':';
25 static final byte SPACE= 0x20;
26 static final byte CARRIAGE_RETURN= 0x0D;
27 static final byte LINE_FEED= 0x0A;
28 static final byte[] CRLF = {CARRIAGE_RETURN,LINE_FEED};
29 static final byte SEMI_COLON= (byte)';';
30 static final byte TAB= 0x09;
31
32 public static final int SELF_DEFINING_CONTENT= -4;
33 public static final int UNKNOWN_CONTENT= -3;
34 public static final int CHUNKED_CONTENT= -2;
35 public static final int EOF_CONTENT= -1;
36 public static final int NO_CONTENT= 0;
37
38
39 }