public abstract class AbstractHttp11Protocol<S> extends AbstractProtocol<S>
AbstractProtocol.AbstractConnectionHandler<S,P extends Processor<S>>, AbstractProtocol.RecycledProcessors<P extends Processor<S>,S>
Modifier and Type | Field and Description |
---|---|
protected static StringManager |
sm |
adapter, clientCertProvider, domain, endpoint, mserver, oname, processorCache, rgOname, tpOname
Constructor and Description |
---|
AbstractHttp11Protocol() |
Modifier and Type | Method and Description |
---|---|
void |
addAllowedTrailerHeader(String header) |
protected void |
configureProcessor(AbstractHttp11Processor<S> processor) |
String |
getAllowedTrailerHeaders() |
protected Set<String> |
getAllowedTrailerHeadersAsSet() |
boolean |
getAllowHostHeaderMismatch()
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?
|
String |
getCompressableMimeType()
Deprecated.
|
String |
getCompressableMimeTypes()
Deprecated.
|
String |
getCompressibleMimeType() |
String |
getCompression() |
int |
getCompressionMinSize() |
int |
getConnectionUploadTimeout()
Specifies a different (usually longer) connection timeout during data
upload.
|
boolean |
getDisableUploadTimeout()
Get the flag that controls upload time-outs.
|
int |
getMaxExtensionSize() |
int |
getMaxHttpHeaderSize() |
int |
getMaxKeepAliveRequests()
Maximum number of requests which can be performed over a keepalive
connection.
|
int |
getMaxSavePostSize()
Return the maximum size of the post which will be saved during FORM or
CLIENT-CERT authentication.
|
int |
getMaxSwallowSize() |
int |
getMaxTrailerSize() |
boolean |
getNoCompressionStrongETag() |
String |
getNoCompressionUserAgents() |
protected String |
getProtocolName()
Obtain the name of the protocol, (Http, Ajp, etc.).
|
boolean |
getRejectIllegalHeader()
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?
|
boolean |
getRejectIllegalHeaderName()
Deprecated.
Now an alias for
getRejectIllegalHeader() . Will be
removed in Tomcat 10 onwards. |
String |
getRelaxedPathChars() |
String |
getRelaxedQueryChars() |
String |
getRestrictedUserAgents() |
boolean |
getSecure() |
String |
getServer() |
int |
getSocketBuffer() |
int |
getUpgradeAsyncWriteBufferSize() |
boolean |
isSSLEnabled() |
void |
removeAllowedTrailerHeader(String header) |
void |
setAllowedTrailerHeaders(String commaSeparatedHeaders) |
void |
setAllowHostHeaderMismatch(boolean allowHostHeaderMismatch)
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?
|
void |
setCompressableMimeType(String valueS)
Deprecated.
|
void |
setCompressableMimeTypes(String valueS)
Deprecated.
|
void |
setCompressibleMimeType(String valueS) |
void |
setCompression(String compression) |
void |
setCompressionMinSize(int compressionMinSize) |
void |
setConnectionUploadTimeout(int timeout)
Set the upload timeout.
|
void |
setDisableUploadTimeout(boolean isDisabled)
Set the flag to control whether a separate connection timeout is used
during upload of a request body.
|
void |
setMaxExtensionSize(int maxExtensionSize) |
void |
setMaxHttpHeaderSize(int valueI) |
void |
setMaxKeepAliveRequests(int mkar) |
void |
setMaxSavePostSize(int maxSavePostSize)
Set the maximum size of a POST which will be buffered during FORM or
CLIENT-CERT authentication.
|
void |
setMaxSwallowSize(int maxSwallowSize) |
void |
setMaxTrailerSize(int maxTrailerSize) |
void |
setNoCompressionStrongEtag(boolean noCompressionStrongETag) |
void |
setNoCompressionUserAgents(String noCompressionUserAgents) |
void |
setRejectIllegalHeader(boolean rejectIllegalHeader)
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?
|
void |
setRejectIllegalHeaderName(boolean rejectIllegalHeaderName)
Deprecated.
Now an alias for
setRejectIllegalHeader(boolean) .
Will be removed in Tomcat 10 onwards. |
void |
setRelaxedPathChars(String relaxedPathChars) |
void |
setRelaxedQueryChars(String relaxedQueryChars) |
void |
setRestrictedUserAgents(String valueS) |
void |
setSecure(boolean b) |
void |
setServer(String server)
Set the server header name.
|
void |
setSocketBuffer(int socketBuffer) |
void |
setSSLEnabled(boolean SSLEnabled) |
void |
setUpgradeAsyncWriteBufferSize(int upgradeAsyncWriteBufferSize) |
destroy, getAdapter, getAddress, getBacklog, getClientCertProvider, getConnectionCount, getConnectionTimeout, getDomain, getExecutor, getHandler, getKeepAliveTimeout, getLocalPort, getLog, getMaxConnections, getMaxCookieCount, getMaxHeaderCount, getMaxThreads, getMinSpareThreads, getName, getNameIndex, getNamePrefix, getObjectName, getPort, getProcessorCache, getProperty, getSoLinger, getSoTimeout, getTcpNoDelay, getThreadPriority, init, isAprRequired, pause, postDeregister, postRegister, preDeregister, preRegister, resume, setAdapter, setAddress, setBacklog, setClientCertProvider, setConnectionTimeout, setExecutor, setKeepAliveTimeout, setMaxConnections, setMaxCookieCount, setMaxHeaderCount, setMaxThreads, setMinSpareThreads, setPort, setProcessorCache, setProperty, setSoLinger, setSoTimeout, setTcpNoDelay, setThreadPriority, start, stop
protected static final StringManager sm
protected String getProtocolName()
AbstractProtocol
getProtocolName
in class AbstractProtocol<S>
public String getRelaxedPathChars()
public void setRelaxedPathChars(String relaxedPathChars)
public String getRelaxedQueryChars()
public void setRelaxedQueryChars(String relaxedQueryChars)
public boolean getAllowHostHeaderMismatch()
true
if Tomcat will allow such requests, otherwise
false
public void setAllowHostHeaderMismatch(boolean allowHostHeaderMismatch)
allowHostHeaderMismatch
- true
to allow such requests,
false
to reject them with a 400public boolean getRejectIllegalHeader()
true
if the request will be rejected or false
if
the header will be ignoredpublic void setRejectIllegalHeader(boolean rejectIllegalHeader)
rejectIllegalHeader
- true
to reject requests with illegal
header names or values, false
to
ignore the header@Deprecated public boolean getRejectIllegalHeaderName()
getRejectIllegalHeader()
. Will be
removed in Tomcat 10 onwards.true
if the request will be rejected or false
if
the header will be ignored@Deprecated public void setRejectIllegalHeaderName(boolean rejectIllegalHeaderName)
setRejectIllegalHeader(boolean)
.
Will be removed in Tomcat 10 onwards.rejectIllegalHeaderName
- true
to reject requests with
illegal header names or values,
false
to ignore the headerpublic int getSocketBuffer()
public void setSocketBuffer(int socketBuffer)
public int getMaxSavePostSize()
public void setMaxSavePostSize(int maxSavePostSize)
maxSavePostSize
- The maximum size POST body to buffer in bytespublic int getMaxHttpHeaderSize()
public void setMaxHttpHeaderSize(int valueI)
public int getConnectionUploadTimeout()
public void setConnectionUploadTimeout(int timeout)
timeout
- Upload timeout in millisecondspublic boolean getDisableUploadTimeout()
true
if the separate upload timeout is disabledpublic void setDisableUploadTimeout(boolean isDisabled)
isDisabled
- true
if the separate upload timeout should be
disabledpublic void setCompression(String compression)
public String getCompression()
public String getNoCompressionUserAgents()
public void setNoCompressionUserAgents(String noCompressionUserAgents)
@Deprecated public String getCompressableMimeType()
@Deprecated public void setCompressableMimeType(String valueS)
@Deprecated public String getCompressableMimeTypes()
@Deprecated public void setCompressableMimeTypes(String valueS)
public void setCompressibleMimeType(String valueS)
public String getCompressibleMimeType()
public int getCompressionMinSize()
public void setCompressionMinSize(int compressionMinSize)
public boolean getNoCompressionStrongETag()
public void setNoCompressionStrongEtag(boolean noCompressionStrongETag)
public String getRestrictedUserAgents()
public void setRestrictedUserAgents(String valueS)
public String getServer()
public void setServer(String server)
server
- The new value to use for the server headerpublic int getMaxTrailerSize()
public void setMaxTrailerSize(int maxTrailerSize)
public int getMaxExtensionSize()
public void setMaxExtensionSize(int maxExtensionSize)
public int getMaxSwallowSize()
public void setMaxSwallowSize(int maxSwallowSize)
public boolean getSecure()
public void setSecure(boolean b)
public int getUpgradeAsyncWriteBufferSize()
public void setUpgradeAsyncWriteBufferSize(int upgradeAsyncWriteBufferSize)
public void setAllowedTrailerHeaders(String commaSeparatedHeaders)
public String getAllowedTrailerHeaders()
public void addAllowedTrailerHeader(String header)
public void removeAllowedTrailerHeader(String header)
public boolean isSSLEnabled()
public void setSSLEnabled(boolean SSLEnabled)
public int getMaxKeepAliveRequests()
public void setMaxKeepAliveRequests(int mkar)
protected void configureProcessor(AbstractHttp11Processor<S> processor)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.