| Modifier and Type | Field and Description |
|---|---|
| private Set | allowedTrailerHeaders
The names of headers that are allowed to be sent via a trailer when using chunked encoding. |
| private boolean | |
| private final CompressionConfig | |
| private int | |
| private ContinueResponseTiming | |
| private boolean | |
| private final Map | httpUpgradeProtocols
The protocols that are available via internal Tomcat support for access via HTTP upgrade. |
| private int | maxExtensionSize
Maximum size of extension information in chunked encoding |
| private int | maxHttpHeaderSize
Maximum size of the HTTP message header. |
| private int | maxHttpRequestHeaderSize
Maximum size of the HTTP request message header. |
| private int | maxHttpResponseHeaderSize
Maximum size of the HTTP response message header. |
| private int | |
| private int | maxSwallowSize
Maximum amount of request body to swallow. |
| private int | maxTrailerSize
Maximum size of trailing headers in bytes |
| private final Map | negotiatedProtocols
The protocols that are available via internal Tomcat support for access via ALPN negotiation. |
| private boolean | |
| private String | |
| private String | |
| private Pattern | |
| private boolean | secure
This field indicates if the protocol is treated as if it is secure. |
| private String | |
| private boolean | |
| protected static final StringManager | |
| private final Map | upgradeProtocolGroupInfos
Map of upgrade protocol name to |
| private final List | upgradeProtocols
The upgrade protocol instances configured. |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | addSslHostConfig(SSLHostConfig
the configuration sslHostConfig)Implements org. Add a new SSL configuration for a virtual host. |
| public void | addSslHostConfig(SSLHostConfig
the configuration sslHostConfig, boolean If replace)true replacement of an existing configuration is permitted, otherwise any such
attempted replacement will trigger an exceptionImplements org. Add a new SSL configuration for a virtual host. |
| public void | addUpgradeProtocol(UpgradeProtocol
the protocol upgradeProtocol)Implements org. Add a new protocol for used by HTTP/1.1 upgrade or ALPN. |
| private void | |
| protected Processor | createProcessor()
Implements abstract org. Create and configure a new Processor instance for the current protocol implementation. |
| protected Processor | createUpgradeProcessor(SocketWrapperBase<?> socket, UpgradeToken upgradeToken)
Implements abstract org.
|
| public void | destroy()
Overrides org. Implements org. Destroy the protocol (optional). |
| public SSLHostConfig[] | findSslHostConfigs()
Implements org. Find all configured SSL virtual host configurations which will be used by SNI. |
| public UpgradeProtocol[] | findUpgradeProtocols()
Implements org. Return all configured upgrade protocols. |
| public String | |
| protected Set | |
| public boolean | Returns: true if Tomcat will allow such requests, otherwise false
Deprecated
This will removed in Tomcat 11 onwards where
allowHostHeaderMismatch will be hard-coded to
false.
Will Tomcat accept an HTTP 1.1 request where the host header does not agree with the host specified (if any) in the request line? |
| public String | |
| public String[] | |
| public String | |
| protected int | |
| public int | |
| public int | Returns: The timeout in millisecondsSpecifies a different (usually longer) connection timeout during data upload. |
| public String | |
| public ContinueResponseTiming | |
| public String | |
| public boolean | Returns: true if the separate upload timeout is disabledGet the flag that controls upload time-outs. |
| protected AbstractEndpoint | getEndpoint()
Overrides org.
Over-ridden here to make the method visible to nested classes. |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | Returns: The maximum number of requests which can be performed over a keep-alive connection. The default is the same as for Apache HTTP Server (100).
|
| public int | Returns: The size in bytesReturn the maximum size of the post which will be saved during FORM or CLIENT-CERT authentication. |
| public int | |
| public int | |
| public UpgradeProtocol | getNegotiatedProtocol(String
The name of the requested negotiated protocol. negotiatedName)Implements abstract org. Find a suitable handler for the protocol negotiated at the network layer. |
| public String | |
| protected Pattern | |
| public ObjectName | |
| protected String | getProtocolName()
Implements abstract org. Obtain the name of the protocol, (Http, Ajp, etc.). |
| public boolean | Returns: true if the request will be rejected or false if the header will be ignored
Deprecated
This will removed in Tomcat 11 onwards where
allowHostHeaderMismatch will be hard-coded to
true.
If an HTTP request is received that contains an illegal header name or value (e.g. the header name is not a token) will the request be rejected (with a 400 response) or will the illegal header be ignored? |
| public String | |
| public String | |
| public String | Returns: The regular expression as a StringGet the string form of the regular expression that defines the User agents which should be restricted to HTTP/1.0 support. |
| protected Pattern | |
| public boolean | |
| public String | |
| public boolean | Returns: true if application provided values should be removed, otherwise falseShould application provider values for the HTTP Server header be removed. |
| public UpgradeGroupInfo | |
| public UpgradeProtocol | getUpgradeProtocol(String
The name of the requested negotiated protocol. upgradedName)Implements abstract org. Find a suitable handler for the protocol upgraded name specified. |
| public boolean | |
| public boolean | |
| public void | init()
Overrides org. Implements org. Initialise the protocol. |
| public boolean | |
| public boolean | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setAllowHostHeaderMismatch(boolean
true to allow such requests, false to reject them with a 400
Deprecated
This will removed in Tomcat 11 onwards where
allowHostHeaderMismatch will be hard-coded to
false.
Will Tomcat accept an HTTP 1.1 request where the host header does not agree with the host specified (if any) in the request line? |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setDisableUploadTimeout(boolean
true if the separate upload timeout should be disabledSet the flag to control whether a separate connection timeout is used during upload of a request body. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setMaxKeepAliveRequests(int
The new maximum number of Keep-Alive requests allowed mkar)Set the maximum number of Keep-Alive requests to allow. |
| public void | setMaxSavePostSize(int
The maximum size POST body to buffer in bytes maxSavePostSize)Set the maximum size of a POST which will be buffered during FORM or CLIENT-CERT authentication. |
| public void | |
| public void | |
| public void | |
| public void | setRejectIllegalHeader(boolean
true to reject requests with illegal header names or values, false to
ignore the header
Deprecated
This will removed in Tomcat 11 onwards where
allowHostHeaderMismatch will be hard-coded to
true.
If an HTTP request is received that contains an illegal header name or value (e.g. the header name is not a token) should the request be rejected (with a 400 response) or should the illegal header be ignored? |
| public void | |
| public void | |
| public void | setRestrictedUserAgents(String
The regular expression as supported by restrictedUserAgents)Pattern for the user agents e.g.
"gorilla|desesplorer|tigrus"Set restricted user agent list (which will downgrade the connector to HTTP/1.0 mode). |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public boolean |
| allowedTrailerHeaders | back to summary |
|---|---|
| private Set<String> allowedTrailerHeaders The names of headers that are allowed to be sent via a trailer when using chunked encoding. They are stored in lower case. | |
| allowHostHeaderMismatch | back to summary |
|---|---|
| private boolean allowHostHeaderMismatch | |
| compressionConfig | back to summary |
|---|---|
| private final CompressionConfig compressionConfig | |
| connectionUploadTimeout | back to summary |
|---|---|
| private int connectionUploadTimeout | |
| continueResponseTiming | back to summary |
|---|---|
| private ContinueResponseTiming continueResponseTiming | |
| disableUploadTimeout | back to summary |
|---|---|
| private boolean disableUploadTimeout | |
| httpUpgradeProtocols | back to summary |
|---|---|
| private final Map<String, UpgradeProtocol> httpUpgradeProtocols The protocols that are available via internal Tomcat support for access via HTTP upgrade. | |
| maxExtensionSize | back to summary |
|---|---|
| private int maxExtensionSize Maximum size of extension information in chunked encoding | |
| maxHttpHeaderSize | back to summary |
|---|---|
| private int maxHttpHeaderSize Maximum size of the HTTP message header. | |
| maxHttpRequestHeaderSize | back to summary |
|---|---|
| private int maxHttpRequestHeaderSize Maximum size of the HTTP request message header. | |
| maxHttpResponseHeaderSize | back to summary |
|---|---|
| private int maxHttpResponseHeaderSize Maximum size of the HTTP response message header. | |
| maxSavePostSize | back to summary |
|---|---|
| private int maxSavePostSize | |
| maxSwallowSize | back to summary |
|---|---|
| private int maxSwallowSize Maximum amount of request body to swallow. | |
| maxTrailerSize | back to summary |
|---|---|
| private int maxTrailerSize Maximum size of trailing headers in bytes | |
| negotiatedProtocols | back to summary |
|---|---|
| private final Map<String, UpgradeProtocol> negotiatedProtocols The protocols that are available via internal Tomcat support for access via ALPN negotiation. | |
| rejectIllegalHeader | back to summary |
|---|---|
| private boolean rejectIllegalHeader | |
| relaxedPathChars | back to summary |
|---|---|
| private String relaxedPathChars | |
| relaxedQueryChars | back to summary |
|---|---|
| private String relaxedQueryChars | |
| restrictedUserAgents | back to summary |
|---|---|
| private Pattern restrictedUserAgents | |
| secure | back to summary |
|---|---|
| private boolean secure This field indicates if the protocol is treated as if it is secure. This normally means https is being used but can be used to fake https e.g behind a reverse proxy. | |
| server | back to summary |
|---|---|
| private String server | |
| serverRemoveAppProvidedValues | back to summary |
|---|---|
| private boolean serverRemoveAppProvidedValues | |
| sm | back to summary |
|---|---|
| protected static final StringManager sm | |
| upgradeProtocolGroupInfos | back to summary |
|---|---|
| private final Map<String, UpgradeGroupInfo> upgradeProtocolGroupInfos Map of upgrade protocol name to
HTTP upgrades via | |
| upgradeProtocols | back to summary |
|---|---|
| private final List<UpgradeProtocol> upgradeProtocols The upgrade protocol instances configured. | |
| useKeepAliveResponseHeader | back to summary |
|---|---|
| private boolean useKeepAliveResponseHeader | |
| AbstractHttp11Protocol | back to summary |
|---|---|
| public AbstractHttp11Protocol(AbstractEndpoint<S, ?> endpoint) | |
| addAllowedTrailerHeader | back to summary |
|---|---|
| public void addAllowedTrailerHeader(String header) | |
| addSslHostConfig | back to summary |
|---|---|
| public void addSslHostConfig(SSLHostConfig sslHostConfig) Implements org. Doc from org. Add a new SSL configuration for a virtual host.
| |
| addSslHostConfig | back to summary |
|---|---|
| public void addSslHostConfig(SSLHostConfig sslHostConfig, boolean replace) Implements org. Doc from org. Add a new SSL configuration for a virtual host.
| |
| addUpgradeProtocol | back to summary |
|---|---|
| public void addUpgradeProtocol(UpgradeProtocol upgradeProtocol) Implements org. Doc from org. Add a new protocol for used by HTTP/1.1 upgrade or ALPN.
| |
| configureUpgradeProtocol | back to summary |
|---|---|
| private void configureUpgradeProtocol(UpgradeProtocol upgradeProtocol) | |
| createProcessor | back to summary |
|---|---|
| protected Processor createProcessor() Implements abstract org. Doc from org. Create and configure a new Processor instance for the current protocol implementation. | |
| createUpgradeProcessor | back to summary |
|---|---|
| protected Processor createUpgradeProcessor(SocketWrapperBase<?> socket, UpgradeToken upgradeToken) Implements abstract org.
| |
| destroy | back to summary |
|---|---|
| public void destroy() throws Exception Overrides org. Implements org. Doc from org. Destroy the protocol (optional). | |
| findSslHostConfigs | back to summary |
|---|---|
| public SSLHostConfig[] findSslHostConfigs() Implements org. Doc from org. Find all configured SSL virtual host configurations which will be used by SNI.
| |
| findUpgradeProtocols | back to summary |
|---|---|
| public UpgradeProtocol[] findUpgradeProtocols() Implements org. Doc from org. Return all configured upgrade protocols.
| |
| getAllowedTrailerHeaders | back to summary |
|---|---|
| public String getAllowedTrailerHeaders() | |
| getAllowedTrailerHeadersInternal | back to summary |
|---|---|
| protected Set | |
| getAllowHostHeaderMismatch | back to summary |
|---|---|
| public boolean getAllowHostHeaderMismatch()
Deprecated This will removed in Tomcat 11 onwards where Will Tomcat accept an HTTP 1.1 request where the host header does not agree with the host specified (if any) in the request line?
| |
| getCompressibleMimeType | back to summary |
|---|---|
| public String getCompressibleMimeType() | |
| getCompressibleMimeTypes | back to summary |
|---|---|
| public String[] getCompressibleMimeTypes() | |
| getCompression | back to summary |
|---|---|
| public String getCompression() | |
| getCompressionLevel | back to summary |
|---|---|
| protected int getCompressionLevel() | |
| getCompressionMinSize | back to summary |
|---|---|
| public int getCompressionMinSize() | |
| getConnectionUploadTimeout | back to summary |
|---|---|
| public int getConnectionUploadTimeout() Specifies a different (usually longer) connection timeout during data upload. Default is 5 minutes as in Apache HTTPD server.
| |
| getContinueResponseTiming | back to summary |
|---|---|
| public String getContinueResponseTiming() | |
| getContinueResponseTimingInternal | back to summary |
|---|---|
| public ContinueResponseTiming getContinueResponseTimingInternal() | |
| getDefaultSSLHostConfigName | back to summary |
|---|---|
| public String getDefaultSSLHostConfigName() | |
| getDisableUploadTimeout | back to summary |
|---|---|
| public boolean getDisableUploadTimeout() Get the flag that controls upload time-outs. If true, the connectionUploadTimeout will be ignored and the regular socket timeout will be used for the full duration of the connection.
| |
| getEndpoint | back to summary |
|---|---|
| protected AbstractEndpoint Overrides org.
Over-ridden here to make the method visible to nested classes.
| |
| getMaxExtensionSize | back to summary |
|---|---|
| public int getMaxExtensionSize() | |
| getMaxHttpHeaderSize | back to summary |
|---|---|
| public int getMaxHttpHeaderSize() | |
| getMaxHttpRequestHeaderSize | back to summary |
|---|---|
| public int getMaxHttpRequestHeaderSize() | |
| getMaxHttpResponseHeaderSize | back to summary |
|---|---|
| public int getMaxHttpResponseHeaderSize() | |
| getMaxKeepAliveRequests | back to summary |
|---|---|
public int getMaxKeepAliveRequests()
| |
| getMaxSavePostSize | back to summary |
|---|---|
| public int getMaxSavePostSize() Return the maximum size of the post which will be saved during FORM or CLIENT-CERT authentication.
| |
| getMaxSwallowSize | back to summary |
|---|---|
| public int getMaxSwallowSize() | |
| getMaxTrailerSize | back to summary |
|---|---|
| public int getMaxTrailerSize() | |
| getNegotiatedProtocol | back to summary |
|---|---|
| public UpgradeProtocol getNegotiatedProtocol(String negotiatedName) Implements abstract org. Doc from org. Find a suitable handler for the protocol negotiated at the network layer.
| |
| getNoCompressionUserAgents | back to summary |
|---|---|
| public String getNoCompressionUserAgents() | |
| getNoCompressionUserAgentsPattern | back to summary |
|---|---|
| protected Pattern getNoCompressionUserAgentsPattern() | |
| getONameForUpgrade | back to summary |
|---|---|
| public ObjectName getONameForUpgrade(String upgradeProtocol) | |
| getProtocolName | back to summary |
|---|---|
| protected String getProtocolName() Implements abstract org. Doc from org. Obtain the name of the protocol, (Http, Ajp, etc.). Used with JMX. | |
| getRejectIllegalHeader | back to summary |
|---|---|
| public boolean getRejectIllegalHeader()
Deprecated This will removed in Tomcat 11 onwards where If an HTTP request is received that contains an illegal header name or value (e.g. the header name is not a token) will the request be rejected (with a 400 response) or will the illegal header be ignored?
| |
| getRelaxedPathChars | back to summary |
|---|---|
| public String getRelaxedPathChars() | |
| getRelaxedQueryChars | back to summary |
|---|---|
| public String getRelaxedQueryChars() | |
| getRestrictedUserAgents | back to summary |
|---|---|
| public String getRestrictedUserAgents() Get the string form of the regular expression that defines the User agents which should be restricted to HTTP/1.0 support.
| |
| getRestrictedUserAgentsPattern | back to summary |
|---|---|
| protected Pattern getRestrictedUserAgentsPattern() | |
| getSecure | back to summary |
|---|---|
| public boolean getSecure() | |
| getServer | back to summary |
|---|---|
| public String getServer() | |
| getServerRemoveAppProvidedValues | back to summary |
|---|---|
| public boolean getServerRemoveAppProvidedValues() Should application provider values for the HTTP Server header be removed. Note that if
| |
| getUpgradeGroupInfo | back to summary |
|---|---|
| public UpgradeGroupInfo getUpgradeGroupInfo(String upgradeProtocol) | |
| getUpgradeProtocol | back to summary |
|---|---|
| public UpgradeProtocol getUpgradeProtocol(String upgradedName) Implements abstract org. Doc from org. Find a suitable handler for the protocol upgraded name specified. This is used for direct connection protocol selection.
| |
| getUseKeepAliveResponseHeader | back to summary |
|---|---|
| public boolean getUseKeepAliveResponseHeader() | |
| getUseSendfile | back to summary |
|---|---|
| public boolean getUseSendfile() | |
| init | back to summary |
|---|---|
| public void init() throws Exception Overrides org. Implements org. Doc from org. Initialise the protocol. | |
| isSSLEnabled | back to summary |
|---|---|
| public boolean isSSLEnabled() | |
| isTrailerHeaderAllowed | back to summary |
|---|---|
| public boolean isTrailerHeaderAllowed(String headerName) | |
| reloadSslHostConfig | back to summary |
|---|---|
| public void reloadSslHostConfig(String hostName) | |
| reloadSslHostConfigs | back to summary |
|---|---|
| public void reloadSslHostConfigs() | |
| removeAllowedTrailerHeader | back to summary |
|---|---|
| public void removeAllowedTrailerHeader(String header) | |
| setAllowedTrailerHeaders | back to summary |
|---|---|
| public void setAllowedTrailerHeaders(String commaSeparatedHeaders) | |
| setAllowHostHeaderMismatch | back to summary |
|---|---|
| public void setAllowHostHeaderMismatch(boolean allowHostHeaderMismatch)
Deprecated This will removed in Tomcat 11 onwards where Will Tomcat accept an HTTP 1.1 request where the host header does not agree with the host specified (if any) in the request line?
| |
| setCompressibleMimeType | back to summary |
|---|---|
| public void setCompressibleMimeType(String valueS) | |
| setCompression | back to summary |
|---|---|
| public void setCompression(String compression) | |
| setCompressionMinSize | back to summary |
|---|---|
| public void setCompressionMinSize(int compressionMinSize) | |
| setConnectionUploadTimeout | back to summary |
|---|---|
| public void setConnectionUploadTimeout(int timeout) Set the upload timeout.
| |
| setContinueResponseTiming | back to summary |
|---|---|
| public void setContinueResponseTiming(String continueResponseTiming) | |
| setDefaultSSLHostConfigName | back to summary |
|---|---|
| public void setDefaultSSLHostConfigName(String defaultSSLHostConfigName) | |
| setDisableUploadTimeout | back to summary |
|---|---|
| public void setDisableUploadTimeout(boolean isDisabled) Set the flag to control whether a separate connection timeout is used during upload of a request body.
| |
| setMaxExtensionSize | back to summary |
|---|---|
| public void setMaxExtensionSize(int maxExtensionSize) | |
| setMaxHttpHeaderSize | back to summary |
|---|---|
| public void setMaxHttpHeaderSize(int valueI) | |
| setMaxHttpRequestHeaderSize | back to summary |
|---|---|
| public void setMaxHttpRequestHeaderSize(int valueI) | |
| setMaxHttpResponseHeaderSize | back to summary |
|---|---|
| public void setMaxHttpResponseHeaderSize(int valueI) | |
| setMaxKeepAliveRequests | back to summary |
|---|---|
| public void setMaxKeepAliveRequests(int mkar) Set the maximum number of Keep-Alive requests to allow. This is to safeguard from DoS attacks. Setting to a negative value disables the limit.
| |
| setMaxSavePostSize | back to summary |
|---|---|
| public void setMaxSavePostSize(int maxSavePostSize) Set the maximum size of a POST which will be buffered during FORM or CLIENT-CERT authentication. When a POST is received where the security constraints require a client certificate, the POST body needs to be buffered while an SSL handshake takes place to obtain the certificate. A similar buffering is required during FORM auth.
| |
| setMaxSwallowSize | back to summary |
|---|---|
| public void setMaxSwallowSize(int maxSwallowSize) | |
| setMaxTrailerSize | back to summary |
|---|---|
| public void setMaxTrailerSize(int maxTrailerSize) | |
| setNoCompressionUserAgents | back to summary |
|---|---|
| public void setNoCompressionUserAgents(String noCompressionUserAgents) | |
| setRejectIllegalHeader | back to summary |
|---|---|
| public void setRejectIllegalHeader(boolean rejectIllegalHeader)
Deprecated This will removed in Tomcat 11 onwards where If an HTTP request is received that contains an illegal header name or value (e.g. the header name is not a token) should the request be rejected (with a 400 response) or should the illegal header be ignored?
| |
| setRelaxedPathChars | back to summary |
|---|---|
| public void setRelaxedPathChars(String relaxedPathChars) | |
| setRelaxedQueryChars | back to summary |
|---|---|
| public void setRelaxedQueryChars(String relaxedQueryChars) | |
| setRestrictedUserAgents | back to summary |
|---|---|
| public void setRestrictedUserAgents(String restrictedUserAgents) Set restricted user agent list (which will downgrade the connector to HTTP/1.0 mode). Regular expression as
supported by | |
| setSecure | back to summary |
|---|---|
| public void setSecure(boolean b) | |
| setServer | back to summary |
|---|---|
| public void setServer(String server) Set the server header name.
| |
| setServerRemoveAppProvidedValues | back to summary |
|---|---|
| public void setServerRemoveAppProvidedValues(boolean serverRemoveAppProvidedValues) | |
| setSSLEnabled | back to summary |
|---|---|
| public void setSSLEnabled(boolean SSLEnabled) | |
| setUseKeepAliveResponseHeader | back to summary |
|---|---|
| public void setUseKeepAliveResponseHeader(boolean useKeepAliveResponseHeader) | |
| setUseSendfile | back to summary |
|---|---|
| public void setUseSendfile(boolean useSendfile) | |
| useCompression | back to summary |
|---|---|
| public boolean useCompression(Request request, Response response) | |