public abstract class AbstractHttp11Protocol<S> extends AbstractProtocol<S>
AbstractProtocol.AsyncTimeout, AbstractProtocol.ConnectionHandler<S>, AbstractProtocol.RecycledProcessors
Modifier and Type | Field and Description |
---|---|
protected static StringManager |
sm |
adapter, clientCertProvider, domain, mserver, oname, processorCache, rgOname, tpOname
Constructor and Description |
---|
AbstractHttp11Protocol(AbstractEndpoint<S> endpoint) |
Modifier and Type | Method and Description |
---|---|
void |
addAllowedTrailerHeader(String header) |
void |
addSslHostConfig(SSLHostConfig sslHostConfig) |
void |
addUpgradeProtocol(UpgradeProtocol upgradeProtocol) |
protected Processor |
createProcessor()
Create and configure a new Processor instance for the current protocol
implementation.
|
protected Processor |
createUpgradeProcessor(SocketWrapperBase<?> socket,
UpgradeToken upgradeToken) |
SSLHostConfig[] |
findSslHostConfigs() |
UpgradeProtocol[] |
findUpgradeProtocols() |
String |
getAllowedTrailerHeaders() |
String |
getCompressableMimeType() |
String[] |
getCompressableMimeTypes() |
String |
getCompression() |
int |
getCompressionMinSize() |
int |
getConnectionUploadTimeout() |
String |
getDefaultSSLHostConfigName() |
boolean |
getDisableUploadTimeout() |
protected AbstractEndpoint<S> |
getEndpoint()
Over-ridden here to make the method visible to nested classes.
|
int |
getMaxExtensionSize() |
int |
getMaxHttpHeaderSize() |
int |
getMaxKeepAliveRequests() |
int |
getMaxSavePostSize() |
int |
getMaxSwallowSize() |
int |
getMaxTrailerSize() |
UpgradeProtocol |
getNegotiatedProtocol(String negotiatedName)
Find a suitable handler for the protocol negotiated
at the network layer.
|
String |
getNoCompressionUserAgents() |
protected String |
getProtocolName()
Obtain the name of the protocol, (Http, Ajp, etc.).
|
String |
getRestrictedUserAgents() |
boolean |
getSecure() |
String |
getServer() |
boolean |
getServerRemoveAppProvidedValues() |
UpgradeProtocol |
getUpgradeProtocol(String upgradedName)
Find a suitable handler for the protocol upgraded name specified.
|
boolean |
getUseSendfile() |
void |
init()
Initialise the protocol.
|
boolean |
isSSLEnabled() |
void |
removeAllowedTrailerHeader(String header) |
void |
setAlgorithm(String keyManagerAlgorithm) |
void |
setAllowedTrailerHeaders(String commaSeparatedHeaders) |
void |
setCiphers(String ciphers) |
void |
setClientAuth(String certificateVerification) |
void |
setCompressableMimeType(String valueS) |
void |
setCompression(String valueS) |
void |
setCompressionMinSize(int valueI) |
void |
setConnectionUploadTimeout(int i) |
void |
setCrlFile(String certificateRevocationListFile) |
void |
setDefaultSSLHostConfigName(String defaultSSLHostConfigName) |
void |
setDisableUploadTimeout(boolean isDisabled) |
void |
setKeyAlias(String certificateKeyAlias) |
void |
setKeyPass(String certificateKeyPassword) |
void |
setKeystoreFile(String keystoreFile) |
void |
setKeystorePass(String certificateKeystorePassword) |
void |
setKeystoreProvider(String certificateKeystoreProvider) |
void |
setKeystoreType(String certificateKeystoreType) |
void |
setMaxExtensionSize(int maxExtensionSize) |
void |
setMaxHttpHeaderSize(int valueI) |
void |
setMaxKeepAliveRequests(int mkar) |
void |
setMaxSavePostSize(int valueI) |
void |
setMaxSwallowSize(int maxSwallowSize) |
void |
setMaxTrailerSize(int maxTrailerSize) |
void |
setNoCompressionUserAgents(String valueS) |
void |
setRestrictedUserAgents(String valueS) |
void |
setSecure(boolean b) |
void |
setServer(String server) |
void |
setServerRemoveAppProvidedValues(boolean serverRemoveAppProvidedValues) |
void |
setSessionCacheSize(int sessionCacheSize) |
void |
setSessionTimeout(int sessionTimeout) |
void |
setSSLCACertificateFile(String caCertificateFile) |
void |
setSSLCACertificatePath(String caCertificatePath) |
void |
setSSLCARevocationFile(String certificateRevocationListFile) |
void |
setSSLCARevocationPath(String certificateRevocationListPath) |
void |
setSSLCertificateChainFile(String certificateChainFile) |
void |
setSSLCertificateFile(String certificateFile) |
void |
setSSLCertificateKeyFile(String certificateKeyFile) |
void |
setSSLCipherSuite(String ciphers) |
void |
setSSLDisableCompression(boolean disableCompression) |
void |
setSSLDisableSessionTickets(boolean disableSessionTickets) |
void |
setSSLEnabled(boolean SSLEnabled) |
void |
setSslEnabledProtocols(String enabledProtocols) |
void |
setSSLHonorCipherOrder(boolean honorCipherOrder) |
void |
setSSLPassword(String certificateKeyPassword) |
void |
setSslProtocol(String sslProtocol) |
void |
setSSLProtocol(String sslProtocol) |
void |
setSSLVerifyClient(String certificateVerification) |
void |
setSSLVerifyDepth(int certificateVerificationDepth) |
void |
setTrustManagerClassName(String trustManagerClassName) |
void |
setTrustMaxCertLength(int certificateVerificationDepth) |
void |
setTruststoreAlgorithm(String truststoreAlgorithm) |
void |
setTruststoreFile(String truststoreFile) |
void |
setTruststorePass(String truststorePassword) |
void |
setTruststoreProvider(String truststoreProvider) |
void |
setTruststoreType(String truststoreType) |
void |
setUseSendfile(boolean useSendfile) |
void |
setUseServerCipherSuitesOrder(boolean honorCipherOrder) |
addWaitingProcessor, destroy, getAcceptorThreadCount, getAcceptorThreadPriority, getAdapter, getAddress, getAsyncTimeout, getBacklog, getClientCertProvider, getConnectionCount, getConnectionTimeout, getDomain, getExecutor, getHandler, getKeepAliveTimeout, getLocalPort, getLog, getMaxConnections, getMaxHeaderCount, getMaxThreads, getMinSpareThreads, getName, getNameIndex, getNamePrefix, getObjectName, getPort, getProcessorCache, getProperty, getSoLinger, getSoTimeout, getTcpNoDelay, getThreadPriority, isAprRequired, isSendfileSupported, pause, postDeregister, postRegister, preDeregister, preRegister, removeWaitingProcessor, resume, setAcceptorThreadCount, setAcceptorThreadPriority, setAdapter, setAddress, setBacklog, setClientCertProvider, setConnectionTimeout, setExecutor, setHandler, setKeepAliveTimeout, setMaxConnections, setMaxHeaderCount, setMaxThreads, setMinSpareThreads, setPort, setProcessorCache, setProperty, setSoLinger, setSoTimeout, setTcpNoDelay, setThreadPriority, start, stop
protected static final StringManager sm
public AbstractHttp11Protocol(AbstractEndpoint<S> endpoint)
public void init() throws Exception
ProtocolHandler
init
in interface ProtocolHandler
init
in class AbstractProtocol<S>
Exception
- If the protocol handler fails to initialiseprotected String getProtocolName()
AbstractProtocol
getProtocolName
in class AbstractProtocol<S>
protected AbstractEndpoint<S> getEndpoint()
Over-ridden here to make the method visible to nested classes.
getEndpoint
in class AbstractProtocol<S>
public int getMaxSavePostSize()
public void setMaxSavePostSize(int valueI)
public int getMaxHttpHeaderSize()
public void setMaxHttpHeaderSize(int valueI)
public int getConnectionUploadTimeout()
public void setConnectionUploadTimeout(int i)
public boolean getDisableUploadTimeout()
public void setDisableUploadTimeout(boolean isDisabled)
public String getCompression()
public void setCompression(String valueS)
public String getNoCompressionUserAgents()
public void setNoCompressionUserAgents(String valueS)
public String getCompressableMimeType()
public void setCompressableMimeType(String valueS)
public String[] getCompressableMimeTypes()
public int getCompressionMinSize()
public void setCompressionMinSize(int valueI)
public String getRestrictedUserAgents()
public void setRestrictedUserAgents(String valueS)
public String getServer()
public void setServer(String server)
public boolean getServerRemoveAppProvidedValues()
public void setServerRemoveAppProvidedValues(boolean serverRemoveAppProvidedValues)
public 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 void setAllowedTrailerHeaders(String commaSeparatedHeaders)
public String getAllowedTrailerHeaders()
public void addAllowedTrailerHeader(String header)
public void removeAllowedTrailerHeader(String header)
public void addUpgradeProtocol(UpgradeProtocol upgradeProtocol)
public UpgradeProtocol[] findUpgradeProtocols()
public UpgradeProtocol getNegotiatedProtocol(String negotiatedName)
AbstractProtocol
getNegotiatedProtocol
in class AbstractProtocol<S>
negotiatedName
- The name of the requested negotiated protocol.UpgradeProtocol.getAlpnName()
matches
the requested protocolpublic UpgradeProtocol getUpgradeProtocol(String upgradedName)
AbstractProtocol
getUpgradeProtocol
in class AbstractProtocol<S>
upgradedName
- The name of the requested negotiated protocol.UpgradeProtocol.getAlpnName()
matches
the requested protocolpublic boolean isSSLEnabled()
public void setSSLEnabled(boolean SSLEnabled)
public boolean getUseSendfile()
public void setUseSendfile(boolean useSendfile)
public int getMaxKeepAliveRequests()
public void setMaxKeepAliveRequests(int mkar)
public String getDefaultSSLHostConfigName()
public void setDefaultSSLHostConfigName(String defaultSSLHostConfigName)
public void addSslHostConfig(SSLHostConfig sslHostConfig)
public SSLHostConfig[] findSslHostConfigs()
public void setSslEnabledProtocols(String enabledProtocols)
public void setSSLProtocol(String sslProtocol)
public void setKeystoreFile(String keystoreFile)
public void setSSLCertificateChainFile(String certificateChainFile)
public void setSSLCertificateFile(String certificateFile)
public void setSSLCertificateKeyFile(String certificateKeyFile)
public void setAlgorithm(String keyManagerAlgorithm)
public void setClientAuth(String certificateVerification)
public void setSSLVerifyClient(String certificateVerification)
public void setTrustMaxCertLength(int certificateVerificationDepth)
public void setSSLVerifyDepth(int certificateVerificationDepth)
public void setUseServerCipherSuitesOrder(boolean honorCipherOrder)
public void setSSLHonorCipherOrder(boolean honorCipherOrder)
public void setCiphers(String ciphers)
public void setSSLCipherSuite(String ciphers)
public void setKeystorePass(String certificateKeystorePassword)
public void setKeyPass(String certificateKeyPassword)
public void setSSLPassword(String certificateKeyPassword)
public void setCrlFile(String certificateRevocationListFile)
public void setSSLCARevocationFile(String certificateRevocationListFile)
public void setSSLCARevocationPath(String certificateRevocationListPath)
public void setKeystoreType(String certificateKeystoreType)
public void setKeystoreProvider(String certificateKeystoreProvider)
public void setKeyAlias(String certificateKeyAlias)
public void setTruststoreAlgorithm(String truststoreAlgorithm)
public void setTruststoreFile(String truststoreFile)
public void setTruststorePass(String truststorePassword)
public void setTruststoreType(String truststoreType)
public void setTruststoreProvider(String truststoreProvider)
public void setSslProtocol(String sslProtocol)
public void setSessionCacheSize(int sessionCacheSize)
public void setSessionTimeout(int sessionTimeout)
public void setSSLCACertificatePath(String caCertificatePath)
public void setSSLCACertificateFile(String caCertificateFile)
public void setSSLDisableCompression(boolean disableCompression)
public void setSSLDisableSessionTickets(boolean disableSessionTickets)
public void setTrustManagerClassName(String trustManagerClassName)
protected Processor createProcessor()
AbstractProtocol
createProcessor
in class AbstractProtocol<S>
protected Processor createUpgradeProcessor(SocketWrapperBase<?> socket, UpgradeToken upgradeToken)
createUpgradeProcessor
in class AbstractProtocol<S>
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.