Class Constants
java.lang.Object
org.apache.coyote.ajp.Constants
Constants.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDefault connection timeout value.static final intSize of basic packet header.static final byteAJP13 cping request message prefix code.static final byteAJP13 cpong reply message prefix code.static final byteAJP13 end response message prefix code.static final byteAJP13 forward request message prefix code.static final byteAJP13 get body chunk message prefix code.static final byteAJP13 ping request message prefix code.static final byteAJP13 send body chunk message prefix code.static final byteAJP13 send headers message prefix code.static final byteAJP13 shutdown message prefix code.static final intDefault maximum total byte size for an AJP packet.static final intDefault maximum size of data that can be read in one packet.static final intDefault maximum size of data that can be sent in one packet.static final intSize of the read header metadata.static final byteTerminator byte for the list of attributes.static final byteAttribute code for authentication type.static final byteAttribute code for context.static final byteAttribute code for JVM route.static final byteAttribute code for query string.static final byteAttribute code for remote user.static final byteAttribute code for request attributes not in the predefined list.static final StringAJP private request attribute for local address.static final StringAJP private request attribute for remote port.static final byteAttribute code for secret.static final byteAttribute code for servlet path.static final byteAttribute code for SSL certificate.static final byteAttribute code for SSL cipher.static final byteAttribute code for SSL key size.static final StringAJP private request attribute for SSL protocol.static final byteAttribute code for SSL session.static final byteAttribute code for stored method.static final intStored method code value.static final intRequest header code for Accept.static final intRequest header code for Accept-Charset.static final intRequest header code for Accept-Encoding.static final intRequest header code for Accept-Language.static final intRequest header code for Authorization.static final intRequest header code for Connection.static final intRequest header code for Content-Length.static final intRequest header code for Content-Type.static final intRequest header code for Cookie.static final intRequest header code for Cookie2.static final intRequest header code for Host.static final intRequest header code for Pragma.static final intRequest header code for Referer.static final intRequest header code for User-Agent.static final intMaximum number of response header codes.static final intResponse code for Content-Language header.static final intResponse code for Content-Length header.static final intResponse code for Content-Type header.static final intResponse code for Date header.static final intResponse code for Last-Modified header.static final intResponse code for Location header.static final intResponse code for Servlet-Engine header.static final intResponse code for Set-Cookie header.static final intResponse code for Set-Cookie2 header.static final intResponse code for Status header.static final intResponse code for WWW-Authenticate header.static final intSize of the send header metadata. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetHeaderForCode(int code) Converts an AJP coded HTTP request header to the header name.static StringgetMethodForCode(int code) Converts an AJP coded HTTP method to the method name.static intgetResponseAjpIndex(String header) Get the AJP response header index for the given header name.static StringgetResponseHeaderForCode(int code) Converts an AJP coded response header name to the HTTP response header name.
-
Field Details
-
DEFAULT_CONNECTION_TIMEOUT
public static final int DEFAULT_CONNECTION_TIMEOUTDefault connection timeout value.- See Also:
-
JK_AJP13_FORWARD_REQUEST
public static final byte JK_AJP13_FORWARD_REQUESTAJP13 forward request message prefix code.- See Also:
-
JK_AJP13_SHUTDOWN
public static final byte JK_AJP13_SHUTDOWNAJP13 shutdown message prefix code.- See Also:
-
JK_AJP13_PING_REQUEST
public static final byte JK_AJP13_PING_REQUESTAJP13 ping request message prefix code.- See Also:
-
JK_AJP13_CPING_REQUEST
public static final byte JK_AJP13_CPING_REQUESTAJP13 cping request message prefix code.- See Also:
-
JK_AJP13_SEND_BODY_CHUNK
public static final byte JK_AJP13_SEND_BODY_CHUNKAJP13 send body chunk message prefix code.- See Also:
-
JK_AJP13_SEND_HEADERS
public static final byte JK_AJP13_SEND_HEADERSAJP13 send headers message prefix code.- See Also:
-
JK_AJP13_END_RESPONSE
public static final byte JK_AJP13_END_RESPONSEAJP13 end response message prefix code.- See Also:
-
JK_AJP13_GET_BODY_CHUNK
public static final byte JK_AJP13_GET_BODY_CHUNKAJP13 get body chunk message prefix code.- See Also:
-
JK_AJP13_CPONG_REPLY
public static final byte JK_AJP13_CPONG_REPLYAJP13 cpong reply message prefix code.- See Also:
-
SC_RESP_CONTENT_TYPE
public static final int SC_RESP_CONTENT_TYPEResponse code for Content-Type header.- See Also:
-
SC_RESP_CONTENT_LANGUAGE
public static final int SC_RESP_CONTENT_LANGUAGEResponse code for Content-Language header.- See Also:
-
SC_RESP_CONTENT_LENGTH
public static final int SC_RESP_CONTENT_LENGTHResponse code for Content-Length header.- See Also:
-
SC_RESP_DATE
public static final int SC_RESP_DATEResponse code for Date header.- See Also:
-
SC_RESP_LAST_MODIFIED
public static final int SC_RESP_LAST_MODIFIEDResponse code for Last-Modified header.- See Also:
-
SC_RESP_LOCATION
public static final int SC_RESP_LOCATIONResponse code for Location header.- See Also:
-
SC_RESP_SET_COOKIE
public static final int SC_RESP_SET_COOKIEResponse code for Set-Cookie header.- See Also:
-
SC_RESP_SET_COOKIE2
public static final int SC_RESP_SET_COOKIE2Response code for Set-Cookie2 header.- See Also:
-
SC_RESP_SERVLET_ENGINE
public static final int SC_RESP_SERVLET_ENGINEResponse code for Servlet-Engine header.- See Also:
-
SC_RESP_STATUS
public static final int SC_RESP_STATUSResponse code for Status header.- See Also:
-
SC_RESP_WWW_AUTHENTICATE
public static final int SC_RESP_WWW_AUTHENTICATEResponse code for WWW-Authenticate header.- See Also:
-
SC_RESP_AJP13_MAX
public static final int SC_RESP_AJP13_MAXMaximum number of response header codes.- See Also:
-
SC_A_CONTEXT
public static final byte SC_A_CONTEXTAttribute code for context.- See Also:
-
SC_A_SERVLET_PATH
public static final byte SC_A_SERVLET_PATHAttribute code for servlet path.- See Also:
-
SC_A_REMOTE_USER
public static final byte SC_A_REMOTE_USERAttribute code for remote user.- See Also:
-
SC_A_AUTH_TYPE
public static final byte SC_A_AUTH_TYPEAttribute code for authentication type.- See Also:
-
SC_A_QUERY_STRING
public static final byte SC_A_QUERY_STRINGAttribute code for query string.- See Also:
-
SC_A_JVM_ROUTE
public static final byte SC_A_JVM_ROUTEAttribute code for JVM route.- See Also:
-
SC_A_SSL_CERT
public static final byte SC_A_SSL_CERTAttribute code for SSL certificate.- See Also:
-
SC_A_SSL_CIPHER
public static final byte SC_A_SSL_CIPHERAttribute code for SSL cipher.- See Also:
-
SC_A_SSL_SESSION
public static final byte SC_A_SSL_SESSIONAttribute code for SSL session.- See Also:
-
SC_A_SSL_KEY_SIZE
public static final byte SC_A_SSL_KEY_SIZEAttribute code for SSL key size.- See Also:
-
SC_A_SECRET
public static final byte SC_A_SECRETAttribute code for secret.- See Also:
-
SC_A_STORED_METHOD
public static final byte SC_A_STORED_METHODAttribute code for stored method.- See Also:
-
SC_A_REQ_ATTRIBUTE
public static final byte SC_A_REQ_ATTRIBUTEAttribute code for request attributes not in the predefined list.- See Also:
-
SC_A_REQ_LOCAL_ADDR
AJP private request attribute for local address.- See Also:
-
SC_A_REQ_REMOTE_PORT
AJP private request attribute for remote port.- See Also:
-
SC_A_SSL_PROTOCOL
AJP private request attribute for SSL protocol.- See Also:
-
SC_A_ARE_DONE
public static final byte SC_A_ARE_DONETerminator byte for the list of attributes.- See Also:
-
MAX_PACKET_SIZE
public static final int MAX_PACKET_SIZEDefault maximum total byte size for an AJP packet.- See Also:
-
H_SIZE
public static final int H_SIZESize of basic packet header.- See Also:
-
READ_HEAD_LEN
public static final int READ_HEAD_LENSize of the read header metadata.- See Also:
-
SEND_HEAD_LEN
public static final int SEND_HEAD_LENSize of the send header metadata.- See Also:
-
MAX_READ_SIZE
public static final int MAX_READ_SIZEDefault maximum size of data that can be read in one packet.- See Also:
-
MAX_SEND_SIZE
public static final int MAX_SEND_SIZEDefault maximum size of data that can be sent in one packet.- See Also:
-
SC_M_JK_STORED
public static final int SC_M_JK_STOREDStored method code value.- See Also:
-
SC_REQ_ACCEPT
public static final int SC_REQ_ACCEPTRequest header code for Accept.- See Also:
-
SC_REQ_ACCEPT_CHARSET
public static final int SC_REQ_ACCEPT_CHARSETRequest header code for Accept-Charset.- See Also:
-
SC_REQ_ACCEPT_ENCODING
public static final int SC_REQ_ACCEPT_ENCODINGRequest header code for Accept-Encoding.- See Also:
-
SC_REQ_ACCEPT_LANGUAGE
public static final int SC_REQ_ACCEPT_LANGUAGERequest header code for Accept-Language.- See Also:
-
SC_REQ_AUTHORIZATION
public static final int SC_REQ_AUTHORIZATIONRequest header code for Authorization.- See Also:
-
SC_REQ_CONNECTION
public static final int SC_REQ_CONNECTIONRequest header code for Connection.- See Also:
-
SC_REQ_CONTENT_TYPE
public static final int SC_REQ_CONTENT_TYPERequest header code for Content-Type.- See Also:
-
SC_REQ_CONTENT_LENGTH
public static final int SC_REQ_CONTENT_LENGTHRequest header code for Content-Length.- See Also:
-
SC_REQ_COOKIE
public static final int SC_REQ_COOKIERequest header code for Cookie.- See Also:
-
SC_REQ_COOKIE2
public static final int SC_REQ_COOKIE2Request header code for Cookie2.- See Also:
-
SC_REQ_HOST
public static final int SC_REQ_HOSTRequest header code for Host.- See Also:
-
SC_REQ_PRAGMA
public static final int SC_REQ_PRAGMARequest header code for Pragma.- See Also:
-
SC_REQ_REFERER
public static final int SC_REQ_REFERERRequest header code for Referer.- See Also:
-
SC_REQ_USER_AGENT
public static final int SC_REQ_USER_AGENTRequest header code for User-Agent.- See Also:
-
-
Method Details
-
getMethodForCode
Converts an AJP coded HTTP method to the method name.- Parameters:
code- the coded value- Returns:
- the string value of the method
-
getHeaderForCode
Converts an AJP coded HTTP request header to the header name.- Parameters:
code- the coded value- Returns:
- the string value of the header name
-
getResponseHeaderForCode
Converts an AJP coded response header name to the HTTP response header name.- Parameters:
code- the coded value- Returns:
- the string value of the header
-
getResponseAjpIndex
Get the AJP response header index for the given header name.- Parameters:
header- The HTTP response header name- Returns:
- the AJP integer code for the header, or 0 if not found
-