Package org.apache.coyote.http11
Class AbstractHttp11Protocol<S>
- java.lang.Object
- 
- org.apache.coyote.AbstractProtocol<S>
- 
- org.apache.coyote.http11.AbstractHttp11Protocol<S>
 
 
- 
- All Implemented Interfaces:
- javax.management.MBeanRegistration,- ProtocolHandler
 - Direct Known Subclasses:
- AbstractHttp11JsseProtocol,- Http11AprProtocol
 
 public abstract class AbstractHttp11Protocol<S> extends AbstractProtocol<S> 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.apache.coyote.AbstractProtocolAbstractProtocol.ConnectionHandler<S>, AbstractProtocol.RecycledProcessors
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected static StringManagersm- 
Fields inherited from class org.apache.coyote.AbstractProtocoladapter, domain, mserver, oname, processorCache, rgOname
 
- 
 - 
Constructor SummaryConstructors Constructor Description AbstractHttp11Protocol(AbstractEndpoint<S,?> endpoint)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddAllowedTrailerHeader(java.lang.String header)voidaddSslHostConfig(SSLHostConfig sslHostConfig)Add a new SSL configuration for a virtual host.voidaddUpgradeProtocol(UpgradeProtocol upgradeProtocol)Add a new protocol for used by HTTP/1.1 upgrade or ALPN.protected ProcessorcreateProcessor()Create and configure a new Processor instance for the current protocol implementation.protected ProcessorcreateUpgradeProcessor(SocketWrapperBase<?> socket, UpgradeToken upgradeToken)voiddestroy()Destroy the protocol (optional).SSLHostConfig[]findSslHostConfigs()Find all configured SSL virtual host configurations which will be used by SNI.UpgradeProtocol[]findUpgradeProtocols()Return all configured upgrade protocols.java.lang.StringgetAlgorithm()java.lang.StringgetAllowedTrailerHeaders()protected java.util.Set<java.lang.String>getAllowedTrailerHeadersInternal()booleangetAllowHostHeaderMismatch()Deprecated.This will removed in Tomcat 11 onwards whereallowHostHeaderMismatchwill be hard-coded tofalse.java.lang.StringgetCiphers()java.lang.StringgetClientAuth()java.lang.StringgetCompressibleMimeType()java.lang.String[]getCompressibleMimeTypes()java.lang.StringgetCompression()protected intgetCompressionLevel()intgetCompressionMinSize()intgetConnectionUploadTimeout()Specifies a different (usually longer) connection timeout during data upload.java.lang.StringgetContinueResponseTiming()ContinueResponseTiminggetContinueResponseTimingInternal()java.lang.StringgetCrlFile()java.lang.StringgetDefaultSSLHostConfigName()booleangetDisableUploadTimeout()Get the flag that controls upload time-outs.protected AbstractEndpoint<S,?>getEndpoint()java.lang.StringgetKeyAlias()java.lang.StringgetKeyPass()java.lang.StringgetKeystoreFile()java.lang.StringgetKeystorePass()java.lang.StringgetKeystoreProvider()java.lang.StringgetKeystoreType()intgetMaxExtensionSize()intgetMaxHttpHeaderSize()intgetMaxHttpRequestHeaderSize()intgetMaxHttpResponseHeaderSize()intgetMaxKeepAliveRequests()intgetMaxSavePostSize()Return the maximum size of the post which will be saved during FORM or CLIENT-CERT authentication.intgetMaxSwallowSize()intgetMaxTrailerSize()UpgradeProtocolgetNegotiatedProtocol(java.lang.String negotiatedName)Find a suitable handler for the protocol negotiated at the network layer.booleangetNoCompressionStrongETag()Deprecated.java.lang.StringgetNoCompressionUserAgents()protected java.util.regex.PatterngetNoCompressionUserAgentsPattern()javax.management.ObjectNamegetONameForUpgrade(java.lang.String upgradeProtocol)protected java.lang.StringgetProtocolName()Obtain the name of the protocol, (Http, Ajp, etc.).booleangetRejectIllegalHeader()Deprecated.This will removed in Tomcat 11 onwards whereallowHostHeaderMismatchwill be hard-coded totrue.booleangetRejectIllegalHeaderName()Deprecated.Now an alias forgetRejectIllegalHeader().java.lang.StringgetRelaxedPathChars()java.lang.StringgetRelaxedQueryChars()java.lang.StringgetRestrictedUserAgents()Get the string form of the regular expression that defines the User agents which should be restricted to HTTP/1.0 support.protected java.util.regex.PatterngetRestrictedUserAgentsPattern()booleangetSecure()java.lang.StringgetServer()booleangetServerRemoveAppProvidedValues()Should application provider values for the HTTP Server header be removed.intgetSessionCacheSize()intgetSessionTimeout()java.lang.StringgetSSLCACertificateFile()java.lang.StringgetSSLCACertificatePath()java.lang.StringgetSSLCARevocationFile()java.lang.StringgetSSLCARevocationPath()java.lang.StringgetSSLCertificateChainFile()java.lang.StringgetSSLCertificateFile()java.lang.StringgetSSLCertificateKeyFile()java.lang.StringgetSSLCipherSuite()booleangetSSLDisableCompression()booleangetSSLDisableSessionTickets()java.lang.StringgetSslEnabledProtocols()booleangetSSLHonorCipherOrder()java.lang.StringgetSSLPassword()java.lang.StringgetSslProtocol()java.lang.StringgetSSLProtocol()java.lang.StringgetSSLVerifyClient()intgetSSLVerifyDepth()java.lang.StringgetTrustManagerClassName()intgetTrustMaxCertLength()java.lang.StringgetTruststoreAlgorithm()java.lang.StringgetTruststoreFile()java.lang.StringgetTruststorePass()java.lang.StringgetTruststoreProvider()java.lang.StringgetTruststoreType()UpgradeGroupInfogetUpgradeGroupInfo(java.lang.String upgradeProtocol)UpgradeProtocolgetUpgradeProtocol(java.lang.String upgradedName)Find a suitable handler for the protocol upgraded name specified.booleangetUseKeepAliveResponseHeader()booleangetUseSendfile()booleangetUseServerCipherSuitesOrder()voidinit()Initialise the protocol.booleanisSSLEnabled()voidreloadSslHostConfig(java.lang.String hostName)voidreloadSslHostConfigs()voidremoveAllowedTrailerHeader(java.lang.String header)voidsetAlgorithm(java.lang.String keyManagerAlgorithm)voidsetAllowedTrailerHeaders(java.lang.String commaSeparatedHeaders)voidsetAllowHostHeaderMismatch(boolean allowHostHeaderMismatch)Deprecated.This will removed in Tomcat 11 onwards whereallowHostHeaderMismatchwill be hard-coded tofalse.voidsetCiphers(java.lang.String ciphers)voidsetClientAuth(java.lang.String certificateVerification)voidsetCompressibleMimeType(java.lang.String valueS)voidsetCompression(java.lang.String compression)voidsetCompressionMinSize(int compressionMinSize)voidsetConnectionUploadTimeout(int timeout)Set the upload timeout.voidsetContinueResponseTiming(java.lang.String continueResponseTiming)voidsetCrlFile(java.lang.String certificateRevocationListFile)voidsetDefaultSSLHostConfigName(java.lang.String defaultSSLHostConfigName)voidsetDisableUploadTimeout(boolean isDisabled)Set the flag to control whether a separate connection timeout is used during upload of a request body.voidsetKeyAlias(java.lang.String certificateKeyAlias)voidsetKeyPass(java.lang.String certificateKeyPassword)voidsetKeystoreFile(java.lang.String keystoreFile)voidsetKeystorePass(java.lang.String certificateKeystorePassword)voidsetKeystoreProvider(java.lang.String certificateKeystoreProvider)voidsetKeystoreType(java.lang.String certificateKeystoreType)voidsetMaxExtensionSize(int maxExtensionSize)voidsetMaxHttpHeaderSize(int valueI)voidsetMaxHttpRequestHeaderSize(int valueI)voidsetMaxHttpResponseHeaderSize(int valueI)voidsetMaxKeepAliveRequests(int mkar)Set the maximum number of Keep-Alive requests to allow.voidsetMaxSavePostSize(int maxSavePostSize)Set the maximum size of a POST which will be buffered during FORM or CLIENT-CERT authentication.voidsetMaxSwallowSize(int maxSwallowSize)voidsetMaxTrailerSize(int maxTrailerSize)voidsetNoCompressionStrongETag(boolean noCompressionStrongETag)Deprecated.voidsetNoCompressionUserAgents(java.lang.String noCompressionUserAgents)voidsetRejectIllegalHeader(boolean rejectIllegalHeader)Deprecated.This will removed in Tomcat 11 onwards whereallowHostHeaderMismatchwill be hard-coded totrue.voidsetRejectIllegalHeaderName(boolean rejectIllegalHeaderName)Deprecated.Now an alias forsetRejectIllegalHeader(boolean).voidsetRelaxedPathChars(java.lang.String relaxedPathChars)voidsetRelaxedQueryChars(java.lang.String relaxedQueryChars)voidsetRestrictedUserAgents(java.lang.String restrictedUserAgents)Set restricted user agent list (which will downgrade the connector to HTTP/1.0 mode).voidsetSecure(boolean b)voidsetServer(java.lang.String server)Set the server header name.voidsetServerRemoveAppProvidedValues(boolean serverRemoveAppProvidedValues)voidsetSessionCacheSize(int sessionCacheSize)voidsetSessionTimeout(int sessionTimeout)voidsetSSLCACertificateFile(java.lang.String caCertificateFile)voidsetSSLCACertificatePath(java.lang.String caCertificatePath)voidsetSSLCARevocationFile(java.lang.String certificateRevocationListFile)voidsetSSLCARevocationPath(java.lang.String certificateRevocationListPath)voidsetSSLCertificateChainFile(java.lang.String certificateChainFile)voidsetSSLCertificateFile(java.lang.String certificateFile)voidsetSSLCertificateKeyFile(java.lang.String certificateKeyFile)voidsetSSLCipherSuite(java.lang.String ciphers)voidsetSSLDisableCompression(boolean disableCompression)voidsetSSLDisableSessionTickets(boolean disableSessionTickets)voidsetSSLEnabled(boolean SSLEnabled)voidsetSslEnabledProtocols(java.lang.String enabledProtocols)voidsetSSLHonorCipherOrder(boolean honorCipherOrder)voidsetSSLPassword(java.lang.String certificateKeyPassword)voidsetSslProtocol(java.lang.String sslProtocol)voidsetSSLProtocol(java.lang.String sslProtocol)voidsetSSLVerifyClient(java.lang.String certificateVerification)voidsetSSLVerifyDepth(int certificateVerificationDepth)voidsetTrustManagerClassName(java.lang.String trustManagerClassName)voidsetTrustMaxCertLength(int certificateVerificationDepth)voidsetTruststoreAlgorithm(java.lang.String truststoreAlgorithm)voidsetTruststoreFile(java.lang.String truststoreFile)voidsetTruststorePass(java.lang.String truststorePassword)voidsetTruststoreProvider(java.lang.String truststoreProvider)voidsetTruststoreType(java.lang.String truststoreType)voidsetUseKeepAliveResponseHeader(boolean useKeepAliveResponseHeader)voidsetUseSendfile(boolean useSendfile)voidsetUseServerCipherSuitesOrder(boolean honorCipherOrder)booleanuseCompression(Request request, Response response)- 
Methods inherited from class org.apache.coyote.AbstractProtocoladdWaitingProcessor, awaitConnectionsClose, closeServerSocketGraceful, getAcceptCount, getAcceptorThreadCount, getAcceptorThreadPriority, getAdapter, getAddress, getClientCertProvider, getConnectionCount, getConnectionLinger, getConnectionTimeout, getDomain, getExecutor, getGlobalRequestProcessorMBeanName, getHandler, getId, getKeepAliveTimeout, getLocalPort, getLog, getMaxConnections, getMaxHeaderCount, getMaxThreads, getMinSpareThreads, getName, getNameIndex, getNamePrefix, getObjectName, getPort, getPortOffset, getPortWithOffset, getProcessorCache, getProperty, getTcpNoDelay, getThreadPriority, getUtilityExecutor, getWaitingProcessorCount, isAprRequired, isPaused, isSendfileSupported, pause, postDeregister, postRegister, preDeregister, preRegister, removeWaitingProcessor, resume, setAcceptCount, setAcceptorThreadCount, setAcceptorThreadPriority, setAdapter, setAddress, setClientCertProvider, setConnectionLinger, setConnectionTimeout, setExecutor, setHandler, setKeepAliveTimeout, setMaxConnections, setMaxHeaderCount, setMaxThreads, setMinSpareThreads, setPort, setPortOffset, setProcessorCache, setProperty, setTcpNoDelay, setThreadPriority, setUtilityExecutor, start, startAsyncTimeout, stop, stopAsyncTimeout
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.apache.coyote.ProtocolHandlergetDesiredBufferSize
 
- 
 
- 
- 
- 
Field Detail- 
smprotected static final StringManager sm 
 
- 
 - 
Constructor Detail- 
AbstractHttp11Protocolpublic AbstractHttp11Protocol(AbstractEndpoint<S,?> endpoint) 
 
- 
 - 
Method Detail- 
initpublic void init() throws java.lang.ExceptionDescription copied from interface:ProtocolHandlerInitialise the protocol.- Specified by:
- initin interface- ProtocolHandler
- Overrides:
- initin class- AbstractProtocol<S>
- Throws:
- java.lang.Exception- If the protocol handler fails to initialise
 
 - 
destroypublic void destroy() throws java.lang.ExceptionDescription copied from interface:ProtocolHandlerDestroy the protocol (optional).- Specified by:
- destroyin interface- ProtocolHandler
- Overrides:
- destroyin class- AbstractProtocol<S>
- Throws:
- java.lang.Exception- If the protocol handler fails to destroy
 
 - 
getProtocolNameprotected java.lang.String getProtocolName() Description copied from class:AbstractProtocolObtain the name of the protocol, (Http, Ajp, etc.). Used with JMX.- Specified by:
- getProtocolNamein class- AbstractProtocol<S>
- Returns:
- the protocol name
 
 - 
getEndpointprotected AbstractEndpoint<S,?> getEndpoint() Over-ridden here to make the method visible to nested classes. - Overrides:
- getEndpointin class- AbstractProtocol<S>
 
 - 
getContinueResponseTimingpublic java.lang.String getContinueResponseTiming() 
 - 
setContinueResponseTimingpublic void setContinueResponseTiming(java.lang.String continueResponseTiming) 
 - 
getContinueResponseTimingInternalpublic ContinueResponseTiming getContinueResponseTimingInternal() 
 - 
getUseKeepAliveResponseHeaderpublic boolean getUseKeepAliveResponseHeader() 
 - 
setUseKeepAliveResponseHeaderpublic void setUseKeepAliveResponseHeader(boolean useKeepAliveResponseHeader) 
 - 
getRelaxedPathCharspublic java.lang.String getRelaxedPathChars() 
 - 
setRelaxedPathCharspublic void setRelaxedPathChars(java.lang.String relaxedPathChars) 
 - 
getRelaxedQueryCharspublic java.lang.String getRelaxedQueryChars() 
 - 
setRelaxedQueryCharspublic void setRelaxedQueryChars(java.lang.String relaxedQueryChars) 
 - 
getAllowHostHeaderMismatch@Deprecated public boolean getAllowHostHeaderMismatch() Deprecated.This will removed in Tomcat 11 onwards whereallowHostHeaderMismatchwill be hard-coded tofalse.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?- Returns:
- trueif Tomcat will allow such requests, otherwise- false
 
 - 
setAllowHostHeaderMismatch@Deprecated public void setAllowHostHeaderMismatch(boolean allowHostHeaderMismatch) Deprecated.This will removed in Tomcat 11 onwards whereallowHostHeaderMismatchwill be hard-coded tofalse.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?- Parameters:
- allowHostHeaderMismatch-- trueto allow such requests,- falseto reject them with a 400
 
 - 
getRejectIllegalHeader@Deprecated public boolean getRejectIllegalHeader() Deprecated.This will removed in Tomcat 11 onwards whereallowHostHeaderMismatchwill be hard-coded totrue.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?- Returns:
- trueif the request will be rejected or- falseif the header will be ignored
 
 - 
setRejectIllegalHeader@Deprecated public void setRejectIllegalHeader(boolean rejectIllegalHeader) Deprecated.This will removed in Tomcat 11 onwards whereallowHostHeaderMismatchwill be hard-coded totrue.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?- Parameters:
- rejectIllegalHeader-- trueto reject requests with illegal header names or values,- falseto ignore the header
 
 - 
getRejectIllegalHeaderName@Deprecated public boolean getRejectIllegalHeaderName() Deprecated.Now an alias forgetRejectIllegalHeader(). Will be removed in Tomcat 10 onwards.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?- Returns:
- trueif the request will be rejected or- falseif the header will be ignored
 
 - 
setRejectIllegalHeaderName@Deprecated public void setRejectIllegalHeaderName(boolean rejectIllegalHeaderName) Deprecated.Now an alias forsetRejectIllegalHeader(boolean). Will be removed in Tomcat 10 onwards.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?- Parameters:
- rejectIllegalHeaderName-- trueto reject requests with illegal header names or values,- falseto ignore the header
 
 - 
getMaxSavePostSizepublic int getMaxSavePostSize() Return the maximum size of the post which will be saved during FORM or CLIENT-CERT authentication.- Returns:
- The size in bytes
 
 - 
setMaxSavePostSizepublic 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.- Parameters:
- maxSavePostSize- The maximum size POST body to buffer in bytes
 
 - 
getMaxHttpHeaderSizepublic int getMaxHttpHeaderSize() 
 - 
setMaxHttpHeaderSizepublic void setMaxHttpHeaderSize(int valueI) 
 - 
getMaxHttpRequestHeaderSizepublic int getMaxHttpRequestHeaderSize() 
 - 
setMaxHttpRequestHeaderSizepublic void setMaxHttpRequestHeaderSize(int valueI) 
 - 
getMaxHttpResponseHeaderSizepublic int getMaxHttpResponseHeaderSize() 
 - 
setMaxHttpResponseHeaderSizepublic void setMaxHttpResponseHeaderSize(int valueI) 
 - 
getConnectionUploadTimeoutpublic int getConnectionUploadTimeout() Specifies a different (usually longer) connection timeout during data upload. Default is 5 minutes as in Apache HTTPD server.- Returns:
- The timeout in milliseconds
 
 - 
setConnectionUploadTimeoutpublic void setConnectionUploadTimeout(int timeout) Set the upload timeout.- Parameters:
- timeout- Upload timeout in milliseconds
 
 - 
getDisableUploadTimeoutpublic 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.- Returns:
- trueif the separate upload timeout is disabled
 
 - 
setDisableUploadTimeoutpublic void setDisableUploadTimeout(boolean isDisabled) Set the flag to control whether a separate connection timeout is used during upload of a request body.- Parameters:
- isDisabled-- trueif the separate upload timeout should be disabled
 
 - 
setCompressionpublic void setCompression(java.lang.String compression) 
 - 
getCompressionpublic java.lang.String getCompression() 
 - 
getCompressionLevelprotected int getCompressionLevel() 
 - 
getNoCompressionUserAgentspublic java.lang.String getNoCompressionUserAgents() 
 - 
getNoCompressionUserAgentsPatternprotected java.util.regex.Pattern getNoCompressionUserAgentsPattern() 
 - 
setNoCompressionUserAgentspublic void setNoCompressionUserAgents(java.lang.String noCompressionUserAgents) 
 - 
getCompressibleMimeTypepublic java.lang.String getCompressibleMimeType() 
 - 
setCompressibleMimeTypepublic void setCompressibleMimeType(java.lang.String valueS) 
 - 
getCompressibleMimeTypespublic java.lang.String[] getCompressibleMimeTypes() 
 - 
getCompressionMinSizepublic int getCompressionMinSize() 
 - 
setCompressionMinSizepublic void setCompressionMinSize(int compressionMinSize) 
 - 
getNoCompressionStrongETag@Deprecated public boolean getNoCompressionStrongETag() Deprecated.
 - 
setNoCompressionStrongETag@Deprecated public void setNoCompressionStrongETag(boolean noCompressionStrongETag) Deprecated.
 - 
getRestrictedUserAgentspublic java.lang.String getRestrictedUserAgents() Get the string form of the regular expression that defines the User agents which should be restricted to HTTP/1.0 support.- Returns:
- The regular expression as a String
 
 - 
getRestrictedUserAgentsPatternprotected java.util.regex.Pattern getRestrictedUserAgentsPattern() 
 - 
setRestrictedUserAgentspublic void setRestrictedUserAgents(java.lang.String restrictedUserAgents) Set restricted user agent list (which will downgrade the connector to HTTP/1.0 mode). Regular expression as supported byPattern.- Parameters:
- restrictedUserAgents- The regular expression as supported by- Patternfor the user agents e.g. "gorilla|desesplorer|tigrus"
 
 - 
getServerpublic java.lang.String getServer() 
 - 
setServerpublic void setServer(java.lang.String server) Set the server header name.- Parameters:
- server- The new value to use for the server header
 
 - 
getServerRemoveAppProvidedValuespublic boolean getServerRemoveAppProvidedValues() Should application provider values for the HTTP Server header be removed. Note that ifserveris set, any application provided value will be over-ridden.- Returns:
- trueif application provided values should be removed, otherwise- false
 
 - 
setServerRemoveAppProvidedValuespublic void setServerRemoveAppProvidedValues(boolean serverRemoveAppProvidedValues) 
 - 
getMaxTrailerSizepublic int getMaxTrailerSize() 
 - 
setMaxTrailerSizepublic void setMaxTrailerSize(int maxTrailerSize) 
 - 
getMaxExtensionSizepublic int getMaxExtensionSize() 
 - 
setMaxExtensionSizepublic void setMaxExtensionSize(int maxExtensionSize) 
 - 
getMaxSwallowSizepublic int getMaxSwallowSize() 
 - 
setMaxSwallowSizepublic void setMaxSwallowSize(int maxSwallowSize) 
 - 
getSecurepublic boolean getSecure() 
 - 
setSecurepublic void setSecure(boolean b) 
 - 
setAllowedTrailerHeaderspublic void setAllowedTrailerHeaders(java.lang.String commaSeparatedHeaders) 
 - 
getAllowedTrailerHeadersInternalprotected java.util.Set<java.lang.String> getAllowedTrailerHeadersInternal() 
 - 
getAllowedTrailerHeaderspublic java.lang.String getAllowedTrailerHeaders() 
 - 
addAllowedTrailerHeaderpublic void addAllowedTrailerHeader(java.lang.String header) 
 - 
removeAllowedTrailerHeaderpublic void removeAllowedTrailerHeader(java.lang.String header) 
 - 
addUpgradeProtocolpublic void addUpgradeProtocol(UpgradeProtocol upgradeProtocol) Description copied from interface:ProtocolHandlerAdd a new protocol for used by HTTP/1.1 upgrade or ALPN.- Parameters:
- upgradeProtocol- the protocol
 
 - 
findUpgradeProtocolspublic UpgradeProtocol[] findUpgradeProtocols() Description copied from interface:ProtocolHandlerReturn all configured upgrade protocols.- Returns:
- the protocols
 
 - 
getNegotiatedProtocolpublic UpgradeProtocol getNegotiatedProtocol(java.lang.String negotiatedName) Description copied from class:AbstractProtocolFind a suitable handler for the protocol negotiated at the network layer.- Specified by:
- getNegotiatedProtocolin class- AbstractProtocol<S>
- Parameters:
- negotiatedName- The name of the requested negotiated protocol.
- Returns:
- The instance where UpgradeProtocol.getAlpnName()matches the requested protocol
 
 - 
getUpgradeProtocolpublic UpgradeProtocol getUpgradeProtocol(java.lang.String upgradedName) Description copied from class:AbstractProtocolFind a suitable handler for the protocol upgraded name specified. This is used for direct connection protocol selection.- Specified by:
- getUpgradeProtocolin class- AbstractProtocol<S>
- Parameters:
- upgradedName- The name of the requested negotiated protocol.
- Returns:
- The instance where UpgradeProtocol.getAlpnName()matches the requested protocol
 
 - 
getUpgradeGroupInfopublic UpgradeGroupInfo getUpgradeGroupInfo(java.lang.String upgradeProtocol) 
 - 
getONameForUpgradepublic javax.management.ObjectName getONameForUpgrade(java.lang.String upgradeProtocol) 
 - 
isSSLEnabledpublic boolean isSSLEnabled() 
 - 
setSSLEnabledpublic void setSSLEnabled(boolean SSLEnabled) 
 - 
getUseSendfilepublic boolean getUseSendfile() 
 - 
setUseSendfilepublic void setUseSendfile(boolean useSendfile) 
 - 
getMaxKeepAliveRequestspublic int getMaxKeepAliveRequests() - 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).
 
 - 
setMaxKeepAliveRequestspublic 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.- Parameters:
- mkar- The new maximum number of Keep-Alive requests allowed
 
 - 
getDefaultSSLHostConfigNamepublic java.lang.String getDefaultSSLHostConfigName() 
 - 
setDefaultSSLHostConfigNamepublic void setDefaultSSLHostConfigName(java.lang.String defaultSSLHostConfigName) 
 - 
addSslHostConfigpublic void addSslHostConfig(SSLHostConfig sslHostConfig) Description copied from interface:ProtocolHandlerAdd a new SSL configuration for a virtual host.- Parameters:
- sslHostConfig- the configuration
 
 - 
findSslHostConfigspublic SSLHostConfig[] findSslHostConfigs() Description copied from interface:ProtocolHandlerFind all configured SSL virtual host configurations which will be used by SNI.- Returns:
- the configurations
 
 - 
reloadSslHostConfigspublic void reloadSslHostConfigs() 
 - 
reloadSslHostConfigpublic void reloadSslHostConfig(java.lang.String hostName) 
 - 
getSslEnabledProtocolspublic java.lang.String getSslEnabledProtocols() 
 - 
setSslEnabledProtocolspublic void setSslEnabledProtocols(java.lang.String enabledProtocols) 
 - 
getSSLProtocolpublic java.lang.String getSSLProtocol() 
 - 
setSSLProtocolpublic void setSSLProtocol(java.lang.String sslProtocol) 
 - 
getKeystoreFilepublic java.lang.String getKeystoreFile() 
 - 
setKeystoreFilepublic void setKeystoreFile(java.lang.String keystoreFile) 
 - 
getSSLCertificateChainFilepublic java.lang.String getSSLCertificateChainFile() 
 - 
setSSLCertificateChainFilepublic void setSSLCertificateChainFile(java.lang.String certificateChainFile) 
 - 
getSSLCertificateFilepublic java.lang.String getSSLCertificateFile() 
 - 
setSSLCertificateFilepublic void setSSLCertificateFile(java.lang.String certificateFile) 
 - 
getSSLCertificateKeyFilepublic java.lang.String getSSLCertificateKeyFile() 
 - 
setSSLCertificateKeyFilepublic void setSSLCertificateKeyFile(java.lang.String certificateKeyFile) 
 - 
getAlgorithmpublic java.lang.String getAlgorithm() 
 - 
setAlgorithmpublic void setAlgorithm(java.lang.String keyManagerAlgorithm) 
 - 
getClientAuthpublic java.lang.String getClientAuth() 
 - 
setClientAuthpublic void setClientAuth(java.lang.String certificateVerification) 
 - 
getSSLVerifyClientpublic java.lang.String getSSLVerifyClient() 
 - 
setSSLVerifyClientpublic void setSSLVerifyClient(java.lang.String certificateVerification) 
 - 
getTrustMaxCertLengthpublic int getTrustMaxCertLength() 
 - 
setTrustMaxCertLengthpublic void setTrustMaxCertLength(int certificateVerificationDepth) 
 - 
getSSLVerifyDepthpublic int getSSLVerifyDepth() 
 - 
setSSLVerifyDepthpublic void setSSLVerifyDepth(int certificateVerificationDepth) 
 - 
getUseServerCipherSuitesOrderpublic boolean getUseServerCipherSuitesOrder() 
 - 
setUseServerCipherSuitesOrderpublic void setUseServerCipherSuitesOrder(boolean honorCipherOrder) 
 - 
getSSLHonorCipherOrderpublic boolean getSSLHonorCipherOrder() 
 - 
setSSLHonorCipherOrderpublic void setSSLHonorCipherOrder(boolean honorCipherOrder) 
 - 
getCipherspublic java.lang.String getCiphers() 
 - 
setCipherspublic void setCiphers(java.lang.String ciphers) 
 - 
getSSLCipherSuitepublic java.lang.String getSSLCipherSuite() 
 - 
setSSLCipherSuitepublic void setSSLCipherSuite(java.lang.String ciphers) 
 - 
getKeystorePasspublic java.lang.String getKeystorePass() 
 - 
setKeystorePasspublic void setKeystorePass(java.lang.String certificateKeystorePassword) 
 - 
getKeyPasspublic java.lang.String getKeyPass() 
 - 
setKeyPasspublic void setKeyPass(java.lang.String certificateKeyPassword) 
 - 
getSSLPasswordpublic java.lang.String getSSLPassword() 
 - 
setSSLPasswordpublic void setSSLPassword(java.lang.String certificateKeyPassword) 
 - 
getCrlFilepublic java.lang.String getCrlFile() 
 - 
setCrlFilepublic void setCrlFile(java.lang.String certificateRevocationListFile) 
 - 
getSSLCARevocationFilepublic java.lang.String getSSLCARevocationFile() 
 - 
setSSLCARevocationFilepublic void setSSLCARevocationFile(java.lang.String certificateRevocationListFile) 
 - 
getSSLCARevocationPathpublic java.lang.String getSSLCARevocationPath() 
 - 
setSSLCARevocationPathpublic void setSSLCARevocationPath(java.lang.String certificateRevocationListPath) 
 - 
getKeystoreTypepublic java.lang.String getKeystoreType() 
 - 
setKeystoreTypepublic void setKeystoreType(java.lang.String certificateKeystoreType) 
 - 
getKeystoreProviderpublic java.lang.String getKeystoreProvider() 
 - 
setKeystoreProviderpublic void setKeystoreProvider(java.lang.String certificateKeystoreProvider) 
 - 
getKeyAliaspublic java.lang.String getKeyAlias() 
 - 
setKeyAliaspublic void setKeyAlias(java.lang.String certificateKeyAlias) 
 - 
getTruststoreAlgorithmpublic java.lang.String getTruststoreAlgorithm() 
 - 
setTruststoreAlgorithmpublic void setTruststoreAlgorithm(java.lang.String truststoreAlgorithm) 
 - 
getTruststoreFilepublic java.lang.String getTruststoreFile() 
 - 
setTruststoreFilepublic void setTruststoreFile(java.lang.String truststoreFile) 
 - 
getTruststorePasspublic java.lang.String getTruststorePass() 
 - 
setTruststorePasspublic void setTruststorePass(java.lang.String truststorePassword) 
 - 
getTruststoreTypepublic java.lang.String getTruststoreType() 
 - 
setTruststoreTypepublic void setTruststoreType(java.lang.String truststoreType) 
 - 
getTruststoreProviderpublic java.lang.String getTruststoreProvider() 
 - 
setTruststoreProviderpublic void setTruststoreProvider(java.lang.String truststoreProvider) 
 - 
getSslProtocolpublic java.lang.String getSslProtocol() 
 - 
setSslProtocolpublic void setSslProtocol(java.lang.String sslProtocol) 
 - 
getSessionCacheSizepublic int getSessionCacheSize() 
 - 
setSessionCacheSizepublic void setSessionCacheSize(int sessionCacheSize) 
 - 
getSessionTimeoutpublic int getSessionTimeout() 
 - 
setSessionTimeoutpublic void setSessionTimeout(int sessionTimeout) 
 - 
getSSLCACertificatePathpublic java.lang.String getSSLCACertificatePath() 
 - 
setSSLCACertificatePathpublic void setSSLCACertificatePath(java.lang.String caCertificatePath) 
 - 
getSSLCACertificateFilepublic java.lang.String getSSLCACertificateFile() 
 - 
setSSLCACertificateFilepublic void setSSLCACertificateFile(java.lang.String caCertificateFile) 
 - 
getSSLDisableCompressionpublic boolean getSSLDisableCompression() 
 - 
setSSLDisableCompressionpublic void setSSLDisableCompression(boolean disableCompression) 
 - 
getSSLDisableSessionTicketspublic boolean getSSLDisableSessionTickets() 
 - 
setSSLDisableSessionTicketspublic void setSSLDisableSessionTickets(boolean disableSessionTickets) 
 - 
getTrustManagerClassNamepublic java.lang.String getTrustManagerClassName() 
 - 
setTrustManagerClassNamepublic void setTrustManagerClassName(java.lang.String trustManagerClassName) 
 - 
createProcessorprotected Processor createProcessor() Description copied from class:AbstractProtocolCreate and configure a new Processor instance for the current protocol implementation.- Specified by:
- createProcessorin class- AbstractProtocol<S>
- Returns:
- A fully configured Processor instance that is ready to use
 
 - 
createUpgradeProcessorprotected Processor createUpgradeProcessor(SocketWrapperBase<?> socket, UpgradeToken upgradeToken) - Specified by:
- createUpgradeProcessorin class- AbstractProtocol<S>
 
 
- 
 
-