Package org.apache.coyote
Class Constants
- java.lang.Object
-
- org.apache.coyote.Constants
-
public final class Constants extends java.lang.ObjectConstants.
-
-
Field Summary
Fields Modifier and Type Field Description static java.nio.charset.CharsetDEFAULT_BODY_CHARSETDefault body character encoding.static intDEFAULT_CONNECTION_LINGERDefault connection linger time.static booleanDEFAULT_TCP_NO_DELAYDefault TCP no-delay setting.static java.nio.charset.CharsetDEFAULT_URI_CHARSETDefault URI character encoding.static booleanIS_SECURITY_ENABLEDHas security been turned on?static intMAX_NOTESMaximum number of notes.static java.lang.StringPEER_ADDR_ATTRIBUTEThe request attribute set by the RemoteIpFilter, RemoteIpValve (and may be set by other similar components) that identifies for the connector the connection peer IP address.static java.lang.StringREMOTE_ADDR_ATTRIBUTEThe request attribute set by the RemoteIpFilter, RemoteIpValve (and may be set by other similar components) that identifies for the connector the remote IP address claimed to be associated with this request when a request is received via one or more proxies.static java.lang.StringSENDFILE_FILE_END_ATTRThe request attribute that can be used by a servlet to pass to the connector the end offset (not including) of the part of a file that is to be served by sendfile.static java.lang.StringSENDFILE_FILE_START_ATTRThe request attribute that can be used by a servlet to pass to the connector the start offset of the part of a file that is to be served by sendfile.static java.lang.StringSENDFILE_FILENAME_ATTRThe request attribute that can be used by a servlet to pass to the connector the name of the file that is to be served by sendfile.static java.lang.StringSENDFILE_SUPPORTED_ATTRThe request attribute that is set to the value ofBoolean.TRUEif connector processing this request supports use of sendfile.static intSTAGE_ENDEDRequest state: ended.static intSTAGE_ENDINPUTRequest state: end input.static intSTAGE_ENDOUTPUTRequest state: end output.static intSTAGE_KEEPALIVERequest state: keep-alive.static intSTAGE_NEWRequest state: new request.static intSTAGE_PARSERequest state: parsing request.static intSTAGE_PREPARERequest state: preparing request.static intSTAGE_SERVICERequest state: servicing request.
-
-
-
Field Detail
-
DEFAULT_URI_CHARSET
public static final java.nio.charset.Charset DEFAULT_URI_CHARSET
Default URI character encoding.
-
DEFAULT_BODY_CHARSET
public static final java.nio.charset.Charset DEFAULT_BODY_CHARSET
Default body character encoding.
-
MAX_NOTES
public static final int MAX_NOTES
Maximum number of notes.- See Also:
- Constant Field Values
-
STAGE_NEW
public static final int STAGE_NEW
Request state: new request.- See Also:
- Constant Field Values
-
STAGE_PARSE
public static final int STAGE_PARSE
Request state: parsing request.- See Also:
- Constant Field Values
-
STAGE_PREPARE
public static final int STAGE_PREPARE
Request state: preparing request.- See Also:
- Constant Field Values
-
STAGE_SERVICE
public static final int STAGE_SERVICE
Request state: servicing request.- See Also:
- Constant Field Values
-
STAGE_ENDINPUT
public static final int STAGE_ENDINPUT
Request state: end input.- See Also:
- Constant Field Values
-
STAGE_ENDOUTPUT
public static final int STAGE_ENDOUTPUT
Request state: end output.- See Also:
- Constant Field Values
-
STAGE_KEEPALIVE
public static final int STAGE_KEEPALIVE
Request state: keep-alive.- See Also:
- Constant Field Values
-
STAGE_ENDED
public static final int STAGE_ENDED
Request state: ended.- See Also:
- Constant Field Values
-
DEFAULT_CONNECTION_LINGER
public static final int DEFAULT_CONNECTION_LINGER
Default connection linger time.- See Also:
- Constant Field Values
-
DEFAULT_TCP_NO_DELAY
public static final boolean DEFAULT_TCP_NO_DELAY
Default TCP no-delay setting.- See Also:
- Constant Field Values
-
IS_SECURITY_ENABLED
public static final boolean IS_SECURITY_ENABLED
Has security been turned on?
-
SENDFILE_SUPPORTED_ATTR
public static final java.lang.String SENDFILE_SUPPORTED_ATTR
The request attribute that is set to the value ofBoolean.TRUEif connector processing this request supports use of sendfile.- See Also:
- Constant Field Values
-
SENDFILE_FILENAME_ATTR
public static final java.lang.String SENDFILE_FILENAME_ATTR
The request attribute that can be used by a servlet to pass to the connector the name of the file that is to be served by sendfile. The value should beStringthat isFile.getCanonicalPath()of the file to be served.- See Also:
- Constant Field Values
-
SENDFILE_FILE_START_ATTR
public static final java.lang.String SENDFILE_FILE_START_ATTR
The request attribute that can be used by a servlet to pass to the connector the start offset of the part of a file that is to be served by sendfile. The value should bejava.lang.Long. To serve complete file the value should beLong.valueOf(0).- See Also:
- Constant Field Values
-
SENDFILE_FILE_END_ATTR
public static final java.lang.String SENDFILE_FILE_END_ATTR
The request attribute that can be used by a servlet to pass to the connector the end offset (not including) of the part of a file that is to be served by sendfile. The value should bejava.lang.Long. To serve complete file the value should be equal to the length of the file.- See Also:
- Constant Field Values
-
REMOTE_ADDR_ATTRIBUTE
public static final java.lang.String REMOTE_ADDR_ATTRIBUTE
The request attribute set by the RemoteIpFilter, RemoteIpValve (and may be set by other similar components) that identifies for the connector the remote IP address claimed to be associated with this request when a request is received via one or more proxies. It is typically provided via the X-Forwarded-For HTTP header.- See Also:
- Constant Field Values
-
PEER_ADDR_ATTRIBUTE
public static final java.lang.String PEER_ADDR_ATTRIBUTE
The request attribute set by the RemoteIpFilter, RemoteIpValve (and may be set by other similar components) that identifies for the connector the connection peer IP address.- See Also:
- Constant Field Values
-
-