public final class Constants extends Object
Modifier and Type | Field and Description |
---|---|
static Charset |
DEFAULT_BODY_CHARSET |
static String |
DEFAULT_CHARACTER_ENCODING
Deprecated.
This will be removed in Tomcat 9.0.x onwards.
|
static int |
DEFAULT_CONNECTION_LINGER |
static boolean |
DEFAULT_TCP_NO_DELAY |
static Charset |
DEFAULT_URI_CHARSET |
static boolean |
IS_SECURITY_ENABLED
Has security been turned on?
|
static int |
MAX_NOTES |
static 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.
|
static 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.
|
static 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.
|
static 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.
|
static String |
SENDFILE_SUPPORTED_ATTR
The request attribute that is set to the value of
Boolean.TRUE
if connector processing this request supports use of sendfile. |
static int |
STAGE_ENDED |
static int |
STAGE_ENDINPUT |
static int |
STAGE_ENDOUTPUT |
static int |
STAGE_KEEPALIVE |
static int |
STAGE_NEW |
static int |
STAGE_PARSE |
static int |
STAGE_PREPARE |
static int |
STAGE_SERVICE |
static boolean |
USE_CUSTOM_STATUS_MSG_IN_HEADER
Deprecated.
This option will be removed in Tomcat 9. Reason phrase will
not be sent.
|
Constructor and Description |
---|
Constants() |
@Deprecated public static final String DEFAULT_CHARACTER_ENCODING
public static final Charset DEFAULT_URI_CHARSET
public static final Charset DEFAULT_BODY_CHARSET
public static final int MAX_NOTES
public static final int STAGE_NEW
public static final int STAGE_PARSE
public static final int STAGE_PREPARE
public static final int STAGE_SERVICE
public static final int STAGE_ENDINPUT
public static final int STAGE_ENDOUTPUT
public static final int STAGE_KEEPALIVE
public static final int STAGE_ENDED
public static final int DEFAULT_CONNECTION_LINGER
public static final boolean DEFAULT_TCP_NO_DELAY
public static final boolean IS_SECURITY_ENABLED
@Deprecated public static final boolean USE_CUSTOM_STATUS_MSG_IN_HEADER
public static final String SENDFILE_SUPPORTED_ATTR
Boolean.TRUE
if connector processing this request supports use of sendfile.public static final String SENDFILE_FILENAME_ATTR
java.lang.String
that is File.getCanonicalPath()
of the file to be served.public static final String SENDFILE_FILE_START_ATTR
java.lang.Long
. To serve complete file
the value should be Long.valueOf(0)
.public static final String SENDFILE_FILE_END_ATTR
java.lang.Long
. To serve complete file
the value should be equal to the length of the file.public static final String REMOTE_ADDR_ATTRIBUTE
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.