Class Http2Protocol

    • Constructor Detail

      • Http2Protocol

        public Http2Protocol()
    • Method Detail

      • getHttpUpgradeName

        public java.lang.String getHttpUpgradeName​(boolean isSSLEnabled)
        Specified by:
        getHttpUpgradeName in interface UpgradeProtocol
        isSSLEnabled - Is this for a connector that is configured to support TLS. Some protocols (e.g. HTTP/2) only support HTTP upgrade over non-secure connections.
        The name that clients will use to request an upgrade to this protocol via an HTTP/1.1 upgrade request or null if upgrade via an HTTP/1.1 upgrade request is not supported.
      • getAlpnIdentifier

        public byte[] getAlpnIdentifier()
        Specified by:
        getAlpnIdentifier in interface UpgradeProtocol
        The byte sequence as listed in the IANA registry for this protocol or null if upgrade via ALPN is not supported.
      • getProcessor

        public Processor getProcessor​(SocketWrapperBase<?> socketWrapper,
                                      Adapter adapter)
        Specified by:
        getProcessor in interface UpgradeProtocol
        socketWrapper - The socketWrapper for the connection that requires a processor
        adapter - The Adapter instance that provides access to the standard Engine/Host/Context/Wrapper processing chain
        A processor instance for processing a connection using this protocol.
      • getInternalUpgradeHandler

        public InternalHttpUpgradeHandler getInternalUpgradeHandler​(Adapter adapter,
                                                                    Request coyoteRequest)
        Specified by:
        getInternalUpgradeHandler in interface UpgradeProtocol
        adapter - The Adapter to use to configure the new upgrade handler
        coyoteRequest - A copy (may be incomplete) of the request that triggered the upgrade
        An instance of the HTTP upgrade handler for this protocol
      • accept

        public boolean accept​(Request request)
        Description copied from interface: UpgradeProtocol
        Allows the implementation to examine the request and accept or reject it based on what it finds.
        Specified by:
        accept in interface UpgradeProtocol
        request - The request that included an upgrade header for this protocol
        true if the request is accepted, otherwise false
      • getReadTimeout

        public long getReadTimeout()
      • setReadTimeout

        public void setReadTimeout​(long readTimeout)
      • getWriteTimeout

        public long getWriteTimeout()
      • setWriteTimeout

        public void setWriteTimeout​(long writeTimeout)
      • getKeepAliveTimeout

        public long getKeepAliveTimeout()
      • setKeepAliveTimeout

        public void setKeepAliveTimeout​(long keepAliveTimeout)
      • getStreamReadTimeout

        public long getStreamReadTimeout()
      • setStreamReadTimeout

        public void setStreamReadTimeout​(long streamReadTimeout)
      • getStreamWriteTimeout

        public long getStreamWriteTimeout()
      • setStreamWriteTimeout

        public void setStreamWriteTimeout​(long streamWriteTimeout)
      • getMaxConcurrentStreams

        public long getMaxConcurrentStreams()
      • setMaxConcurrentStreams

        public void setMaxConcurrentStreams​(long maxConcurrentStreams)
      • getMaxConcurrentStreamExecution

        public int getMaxConcurrentStreamExecution()
      • setMaxConcurrentStreamExecution

        public void setMaxConcurrentStreamExecution​(int maxConcurrentStreamExecution)
      • getInitialWindowSize

        public int getInitialWindowSize()
      • setInitialWindowSize

        public void setInitialWindowSize​(int initialWindowSize)
      • setAllowedTrailerHeaders

        public void setAllowedTrailerHeaders​(java.lang.String commaSeparatedHeaders)
      • getAllowedTrailerHeaders

        public java.lang.String getAllowedTrailerHeaders()
      • setMaxHeaderCount

        public void setMaxHeaderCount​(int maxHeaderCount)
      • getMaxHeaderCount

        public int getMaxHeaderCount()
      • setMaxHeaderSize

        public void setMaxHeaderSize​(int maxHeaderSize)
      • getMaxHeaderSize

        public int getMaxHeaderSize()
      • setMaxTrailerCount

        public void setMaxTrailerCount​(int maxTrailerCount)
      • getMaxTrailerCount

        public int getMaxTrailerCount()
      • setMaxTrailerSize

        public void setMaxTrailerSize​(int maxTrailerSize)
      • getMaxTrailerSize

        public int getMaxTrailerSize()
      • getOverheadCountFactor

        public int getOverheadCountFactor()
      • setOverheadCountFactor

        public void setOverheadCountFactor​(int overheadCountFactor)
      • getOverheadContinuationThreshold

        public int getOverheadContinuationThreshold()
      • setOverheadContinuationThreshold

        public void setOverheadContinuationThreshold​(int overheadContinuationThreshold)
      • getOverheadDataThreshold

        public int getOverheadDataThreshold()
      • setOverheadDataThreshold

        public void setOverheadDataThreshold​(int overheadDataThreshold)
      • getOverheadWindowUpdateThreshold

        public int getOverheadWindowUpdateThreshold()
      • setOverheadWindowUpdateThreshold

        public void setOverheadWindowUpdateThreshold​(int overheadWindowUpdateThreshold)
      • setInitiatePingDisabled

        public void setInitiatePingDisabled​(boolean initiatePingDisabled)
      • setCompression

        public void setCompression​(java.lang.String compression)
      • getCompression

        public java.lang.String getCompression()
      • getCompressionLevel

        protected int getCompressionLevel()
      • getNoCompressionUserAgents

        public java.lang.String getNoCompressionUserAgents()
      • getNoCompressionUserAgentsPattern

        protected java.util.regex.Pattern getNoCompressionUserAgentsPattern()
      • setNoCompressionUserAgents

        public void setNoCompressionUserAgents​(java.lang.String noCompressionUserAgents)
      • getCompressibleMimeType

        public java.lang.String getCompressibleMimeType()
      • setCompressibleMimeType

        public void setCompressibleMimeType​(java.lang.String valueS)
      • getCompressibleMimeTypes

        public java.lang.String[] getCompressibleMimeTypes()
      • getCompressionMinSize

        public int getCompressionMinSize()
      • setCompressionMinSize

        public void setCompressionMinSize​(int compressionMinSize)
      • getNoCompressionStrongETag

        public boolean getNoCompressionStrongETag()
      • setNoCompressionStrongETag

        public void setNoCompressionStrongETag​(boolean noCompressionStrongETag)
      • useCompression

        public boolean useCompression​(Request request,
                                      Response response)
      • getUpgradeProtocolName

        public java.lang.String getUpgradeProtocolName()