FileDocCategorySizeDatePackage
Constants.javaAPI DocApache Tomcat 6.0.1411496Fri Jul 20 04:20:34 BST 2007org.apache.coyote.ajp

Constants

public final class Constants extends Object
Constants.
author
Remy Maucherat

Fields Summary
public static final String
Package
Package name.
public static final int
DEFAULT_CONNECTION_LINGER
public static final int
DEFAULT_CONNECTION_TIMEOUT
public static final int
DEFAULT_CONNECTION_UPLOAD_TIMEOUT
public static final int
DEFAULT_SERVER_SOCKET_TIMEOUT
public static final boolean
DEFAULT_TCP_NO_DELAY
public static final byte
JK_AJP13_FORWARD_REQUEST
public static final byte
JK_AJP13_SHUTDOWN
public static final byte
JK_AJP13_PING_REQUEST
public static final byte
JK_AJP13_CPING_REQUEST
public static final byte
JK_AJP13_SEND_BODY_CHUNK
public static final byte
JK_AJP13_SEND_HEADERS
public static final byte
JK_AJP13_END_RESPONSE
public static final byte
JK_AJP13_GET_BODY_CHUNK
public static final byte
JK_AJP13_CPONG_REPLY
public static final int
SC_RESP_CONTENT_TYPE
public static final int
SC_RESP_CONTENT_LANGUAGE
public static final int
SC_RESP_CONTENT_LENGTH
public static final int
SC_RESP_DATE
public static final int
SC_RESP_LAST_MODIFIED
public static final int
SC_RESP_LOCATION
public static final int
SC_RESP_SET_COOKIE
public static final int
SC_RESP_SET_COOKIE2
public static final int
SC_RESP_SERVLET_ENGINE
public static final int
SC_RESP_STATUS
public static final int
SC_RESP_WWW_AUTHENTICATE
public static final int
SC_RESP_AJP13_MAX
public static final byte
SC_A_CONTEXT
public static final byte
SC_A_SERVLET_PATH
public static final byte
SC_A_REMOTE_USER
public static final byte
SC_A_AUTH_TYPE
public static final byte
SC_A_QUERY_STRING
public static final byte
SC_A_JVM_ROUTE
public static final byte
SC_A_SSL_CERT
public static final byte
SC_A_SSL_CIPHER
public static final byte
SC_A_SSL_SESSION
public static final byte
SC_A_SSL_KEYSIZE
public static final byte
SC_A_SECRET
public static final byte
SC_A_STORED_METHOD
public static final byte
SC_A_REQ_ATTRIBUTE
public static final byte
SC_A_ARE_DONE
public static final int
MAX_PACKET_SIZE
Default maximum total byte size for a AJP packet
public static final int
H_SIZE
Size of basic packet header
public static final int
READ_HEAD_LEN
Size of the header metadata
public static final int
SEND_HEAD_LEN
public static final int
MAX_READ_SIZE
Default maximum size of data that can be sent in one packet
public static final int
MAX_SEND_SIZE
public static final String[]
methodTransArray
public static final int
SC_M_JK_STORED
public static final int
SC_REQ_ACCEPT
public static final int
SC_REQ_ACCEPT_CHARSET
public static final int
SC_REQ_ACCEPT_ENCODING
public static final int
SC_REQ_ACCEPT_LANGUAGE
public static final int
SC_REQ_AUTHORIZATION
public static final int
SC_REQ_CONNECTION
public static final int
SC_REQ_CONTENT_TYPE
public static final int
SC_REQ_CONTENT_LENGTH
public static final int
SC_REQ_COOKIE
public static final int
SC_REQ_COOKIE2
public static final int
SC_REQ_HOST
public static final int
SC_REQ_PRAGMA
public static final int
SC_REQ_REFERER
public static final int
SC_REQ_USER_AGENT
public static final byte
SC_A_SSL_KEY_SIZE
public static final String[]
headerTransArray
public static final String[]
responseTransArray
private static final Hashtable
responseTransHash
public static final String
CRLF
CRLF.
public static final byte[]
SERVER_BYTES
Server string.
public static final byte
CR
CR.
public static final byte
LF
LF.
public static final byte
SP
SP.
public static final byte
HT
HT.
public static final byte
COLON
COLON.
public static final byte
A
'A'.
public static final byte
a
'a'.
public static final byte
Z
'Z'.
public static final byte
QUESTION
'?'.
public static final byte
LC_OFFSET
Lower case offset.
public static final int
DEFAULT_HTTP_HEADER_BUFFER_SIZE
Default HTTP header buffer size.
public static final byte[]
CRLF_BYTES
public static final byte[]
COLON_BYTES
public static final String
CONNECTION
public static final String
CLOSE
public static final byte[]
CLOSE_BYTES
public static final String
KEEPALIVE
public static final byte[]
KEEPALIVE_BYTES
public static final String
CHUNKED
public static final byte[]
ACK_BYTES
public static final String
TRANSFERENCODING
public static final byte[]
_200_BYTES
public static final byte[]
_400_BYTES
public static final byte[]
_404_BYTES
public static final int
IDENTITY_FILTER
Identity filters (input and output).
public static final int
CHUNKED_FILTER
Chunked filters (input and output).
public static final int
VOID_FILTER
Void filters (input and output).
public static final int
GZIP_FILTER
GZIP filter (output).
public static final int
BUFFERED_FILTER
Buffered filter (input)
public static final String
HTTP_10
HTTP/1.0.
public static final String
HTTP_11
HTTP/1.1.
public static final byte[]
HTTP_11_BYTES
public static final String
GET
GET.
public static final String
HEAD
HEAD.
public static final String
POST
POST.
Constructors Summary
Methods Summary
public static final intgetResponseAjpIndex(java.lang.String header)


     
        try {
            int i;
            for (i = 0; i < SC_RESP_AJP13_MAX; i++) {
                responseTransHash.put(responseTransArray[i],
                                      new Integer(0xA001 + i));
            }
        }
        catch (Exception e) {
            // Do nothing
        }
    
        Integer i = responseTransHash.get(header);
        if (i == null)
            return 0;
        else
            return i.intValue();