Package org.apache.coyote
Class Constants
- java.lang.Object
- 
- org.apache.coyote.Constants
 
- 
 public final class Constants extends java.lang.ObjectConstants.- Author:
- Remy Maucherat
 
- 
- 
Field SummaryFields Modifier and Type Field Description static java.nio.charset.CharsetDEFAULT_BODY_CHARSETstatic intDEFAULT_CONNECTION_LINGERstatic booleanDEFAULT_TCP_NO_DELAYstatic java.nio.charset.CharsetDEFAULT_URI_CHARSETstatic booleanIS_SECURITY_ENABLEDHas security been turned on?static intMAX_NOTESstatic 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_ENDEDstatic intSTAGE_ENDINPUTstatic intSTAGE_ENDOUTPUTstatic intSTAGE_KEEPALIVEstatic intSTAGE_NEWstatic intSTAGE_PARSEstatic intSTAGE_PREPAREstatic intSTAGE_SERVICE
 - 
Constructor SummaryConstructors Constructor Description Constants()
 
- 
- 
- 
Field Detail- 
DEFAULT_URI_CHARSETpublic static final java.nio.charset.Charset DEFAULT_URI_CHARSET 
 - 
DEFAULT_BODY_CHARSETpublic static final java.nio.charset.Charset DEFAULT_BODY_CHARSET 
 - 
MAX_NOTESpublic static final int MAX_NOTES - See Also:
- Constant Field Values
 
 - 
STAGE_NEWpublic static final int STAGE_NEW - See Also:
- Constant Field Values
 
 - 
STAGE_PARSEpublic static final int STAGE_PARSE - See Also:
- Constant Field Values
 
 - 
STAGE_PREPAREpublic static final int STAGE_PREPARE - See Also:
- Constant Field Values
 
 - 
STAGE_SERVICEpublic static final int STAGE_SERVICE - See Also:
- Constant Field Values
 
 - 
STAGE_ENDINPUTpublic static final int STAGE_ENDINPUT - See Also:
- Constant Field Values
 
 - 
STAGE_ENDOUTPUTpublic static final int STAGE_ENDOUTPUT - See Also:
- Constant Field Values
 
 - 
STAGE_KEEPALIVEpublic static final int STAGE_KEEPALIVE - See Also:
- Constant Field Values
 
 - 
STAGE_ENDEDpublic static final int STAGE_ENDED - See Also:
- Constant Field Values
 
 - 
DEFAULT_CONNECTION_LINGERpublic static final int DEFAULT_CONNECTION_LINGER - See Also:
- Constant Field Values
 
 - 
DEFAULT_TCP_NO_DELAYpublic static final boolean DEFAULT_TCP_NO_DELAY - See Also:
- Constant Field Values
 
 - 
IS_SECURITY_ENABLEDpublic static final boolean IS_SECURITY_ENABLED Has security been turned on?
 - 
SENDFILE_SUPPORTED_ATTRpublic 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_ATTRpublic 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 bejava.lang.Stringthat isFile.getCanonicalPath()of the file to be served.- See Also:
- Constant Field Values
 
 - 
SENDFILE_FILE_START_ATTRpublic 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_ATTRpublic 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_ATTRIBUTEpublic 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_ATTRIBUTEpublic 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
 
 
- 
 
-