Class Http11NioProtocol
java.lang.Object
org.apache.coyote.AbstractProtocol<NioChannel>
org.apache.coyote.http11.AbstractHttp11Protocol<NioChannel>
org.apache.coyote.http11.AbstractHttp11JsseProtocol<NioChannel>
org.apache.coyote.http11.Http11NioProtocol
- All Implemented Interfaces:
MBeanRegistration, ProtocolHandler
HTTP/1.1 protocol implementation using NIO.
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractProtocol
AbstractProtocol.ConnectionHandler<S>, AbstractProtocol.RecycledProcessors -
Field Summary
Fields inherited from class AbstractHttp11Protocol
smFields inherited from class AbstractProtocol
adapter, domain, mserver, oname, processorCache, rgOname -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new Http11NioProtocol with a default NIO endpoint.Http11NioProtocol(NioEndpoint endpoint) Constructs a new Http11NioProtocol with the specified endpoint. -
Method Summary
Modifier and TypeMethodDescriptionprotected LoggetLog()Concrete implementations need to provide access to their logger to be used by the abstract classes.protected StringObtain the prefix to be used when construction a name for this protocol handler.intGets the poller thread priority for the NIO endpoint.longGets the selector timeout for the NIO endpoint.voidsetPollerThreadPriority(int threadPriority) Sets the poller thread priority for the NIO endpoint.voidsetSelectorTimeout(long timeout) Sets the selector timeout for the NIO endpoint.Methods inherited from class AbstractHttp11JsseProtocol
getEndpoint, getSniParseLimit, getSslImplementationName, getSslImplementationShortName, setSniParseLimit, setSslImplementationNameMethods inherited from class AbstractHttp11Protocol
addAllowedTrailerHeader, addSslHostConfig, addSslHostConfig, addUpgradeProtocol, checkSni, createProcessor, createUpgradeProcessor, destroy, findSslHostConfigs, findUpgradeProtocols, getAllowedTrailerHeaders, getAllowedTrailerHeadersInternal, getAllowHostHeaderMismatch, getCompressibleMimeType, getCompressibleMimeTypes, getCompression, getCompressionLevel, getCompressionMinSize, getConnectionUploadTimeout, getContinueResponseTiming, getContinueResponseTimingInternal, getDefaultSSLHostConfigName, getDisableUploadTimeout, getHttpParser, getMaxExtensionSize, getMaxHttpHeaderSize, getMaxHttpRequestHeaderSize, getMaxHttpResponseHeaderSize, getMaxKeepAliveRequests, getMaxSavePostSize, getMaxSwallowSize, getMaxTrailerSize, getNegotiatedProtocol, getNoCompressionEncodings, getNoCompressionUserAgents, getNoCompressionUserAgentsPattern, getONameForUpgrade, getProtocolName, getRejectIllegalHeader, getRelaxedPathChars, getRelaxedQueryChars, getRestrictedUserAgents, getRestrictedUserAgentsPattern, getSecure, getServer, getServerRemoveAppProvidedValues, getUpgradeGroupInfo, getUpgradeProtocol, getUseKeepAliveResponseHeader, getUseSendfile, init, isSSLEnabled, isTrailerHeaderAllowed, reloadSslHostConfig, reloadSslHostConfigs, removeAllowedTrailerHeader, setAllowedTrailerHeaders, setAllowHostHeaderMismatch, setCompressibleMimeType, setCompression, setCompressionMinSize, setConnectionUploadTimeout, setContinueResponseTiming, setDefaultSSLHostConfigName, setDisableUploadTimeout, setMaxExtensionSize, setMaxHttpHeaderSize, setMaxHttpRequestHeaderSize, setMaxHttpResponseHeaderSize, setMaxKeepAliveRequests, setMaxSavePostSize, setMaxSwallowSize, setMaxTrailerSize, setNoCompressionEncodings, setNoCompressionUserAgents, setRejectIllegalHeader, setRelaxedPathChars, setRelaxedQueryChars, setRestrictedUserAgents, setSecure, setServer, setServerRemoveAppProvidedValues, setSSLEnabled, setUseKeepAliveResponseHeader, setUseSendfile, useCompressionMethods inherited from class AbstractProtocol
addWaitingProcessor, awaitConnectionsClose, closeServerSocketGraceful, getAcceptCount, getAcceptorThreadPriority, getAdapter, getAddress, getClientCertProvider, getConnectionCount, getConnectionLinger, getConnectionTimeout, getDomain, getExecutor, getGlobalRequestProcessorMBeanName, getHandler, getId, getKeepAliveTimeout, getLocalPort, getMaxConnections, getMaxHeaderCount, getMaxQueueSize, getMaxThreads, getMinSpareThreads, getName, getNameIndex, getObjectName, getPort, getPortOffset, getPortWithOffset, getProcessorCache, getProperty, getTcpNoDelay, getThreadPriority, getUtilityExecutor, getWaitingProcessorCount, isPaused, isSendfileSupported, pause, postDeregister, postRegister, preDeregister, preRegister, removeWaitingProcessor, resume, setAcceptCount, setAcceptorThreadPriority, setAdapter, setAddress, setClientCertProvider, setConnectionLinger, setConnectionTimeout, setExecutor, setHandler, setKeepAliveTimeout, setMaxConnections, setMaxHeaderCount, setMaxQueueSize, setMaxThreads, setMinSpareThreads, setPort, setPortOffset, setProcessorCache, setProperty, setTcpNoDelay, setThreadPriority, setUtilityExecutor, start, startAsyncTimeout, stop, stopAsyncTimeoutMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ProtocolHandler
getDesiredBufferSize
-
Constructor Details
-
Http11NioProtocol
public Http11NioProtocol()Constructs a new Http11NioProtocol with a default NIO endpoint. -
Http11NioProtocol
Constructs a new Http11NioProtocol with the specified endpoint.- Parameters:
endpoint- the NIO endpoint to use
-
-
Method Details
-
getLog
Description copied from class:AbstractProtocolConcrete implementations need to provide access to their logger to be used by the abstract classes.- Specified by:
getLogin classAbstractProtocol<NioChannel>- Returns:
- the logger
-
setSelectorTimeout
public void setSelectorTimeout(long timeout) Sets the selector timeout for the NIO endpoint.- Parameters:
timeout- the selector timeout in milliseconds
-
getSelectorTimeout
public long getSelectorTimeout()Gets the selector timeout for the NIO endpoint.- Returns:
- the selector timeout in milliseconds
-
setPollerThreadPriority
public void setPollerThreadPriority(int threadPriority) Sets the poller thread priority for the NIO endpoint.- Parameters:
threadPriority- the poller thread priority
-
getPollerThreadPriority
public int getPollerThreadPriority()Gets the poller thread priority for the NIO endpoint.- Returns:
- the poller thread priority
-
getNamePrefix
Description copied from class:AbstractProtocolObtain the prefix to be used when construction a name for this protocol handler. The name will be prefix-address-port.- Specified by:
getNamePrefixin classAbstractProtocol<NioChannel>- Returns:
- the prefix
-