01: //========================================================================
02: //$Id: HttpTokens.java,v 1.1 2005/10/05 14:09:21 janb Exp $
03: //Copyright 2004-2005 Mort Bay Consulting Pty. Ltd.
04: //------------------------------------------------------------------------
05: //Licensed under the Apache License, Version 2.0 (the "License");
06: //you may not use this file except in compliance with the License.
07: //You may obtain a copy of the License at
08: //http://www.apache.org/licenses/LICENSE-2.0
09: //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: // Terminal symbols.
23: static final byte COLON = (byte) ':';
24: static final byte SPACE = 0x20;
25: static final byte CARRIAGE_RETURN = 0x0D;
26: static final byte LINE_FEED = 0x0A;
27: static final byte[] CRLF = { CARRIAGE_RETURN, LINE_FEED };
28: static final byte SEMI_COLON = (byte) ';';
29: static final byte TAB = 0x09;
30:
31: public static final int SELF_DEFINING_CONTENT = -4;
32: public static final int UNKNOWN_CONTENT = -3;
33: public static final int CHUNKED_CONTENT = -2;
34: public static final int EOF_CONTENT = -1;
35: public static final int NO_CONTENT = 0;
36:
37: }
|