Uses of Class
io.netty.handler.codec.http2.Http2Exception
Packages that use Http2Exception
-
Uses of Http2Exception in io.netty.handler.codec.http2
Subclasses of Http2Exception in io.netty.handler.codec.http2Modifier and TypeClassDescriptionstatic final classUsed when a stream creation attempt fails but may be because the stream was previously closed.static final classProvides the ability to handle multiple stream exceptions with one throw statement.static final classprivate static final classstatic classRepresents an exception that can be isolated to a single stream (as opposed to the entire connection).classThis exception is thrown when there are no more stream IDs available for the current connectionstatic final classThrown if buffered streams are terminated due to this encoder being closed.static final classThrown byStreamBufferingEncoderif buffered streams are terminated due to receipt of aGOAWAY.Fields in io.netty.handler.codec.http2 declared as Http2ExceptionModifier and TypeFieldDescriptionprivate static final Http2ExceptionHpackHuffmanDecoder.BAD_ENCODINGprivate static final Http2ExceptionHpackDecoder.DECODE_ILLEGAL_INDEX_VALUEprivate static final Http2ExceptionHpackDecoder.DECODE_ULE_128_DECOMPRESSION_EXCEPTIONprivate static final Http2ExceptionHpackDecoder.DECODE_ULE_128_TO_INT_DECOMPRESSION_EXCEPTIONprivate static final Http2ExceptionHpackDecoder.DECODE_ULE_128_TO_LONG_DECOMPRESSION_EXCEPTIONprivate static final Http2ExceptionHpackDecoder.INDEX_HEADER_ILLEGAL_INDEX_VALUEprivate static final Http2ExceptionHpackDecoder.INVALID_MAX_DYNAMIC_TABLE_SIZEprivate static final Http2ExceptionHpackDecoder.MAX_DYNAMIC_TABLE_SIZE_CHANGE_REQUIREDprivate static final Http2ExceptionHpackDecoder.READ_NAME_ILLEGAL_INDEX_VALUEprivate static final Http2ExceptionHttp2MaxRstFrameListener.RST_FRAME_RATE_EXCEEDEDprivate Http2ExceptionHpackDecoder.Http2HeadersSink.validationExceptionMethods in io.netty.handler.codec.http2 that return Http2ExceptionModifier and TypeMethodDescriptionstatic Http2ExceptionHttp2Exception.closedStreamError(Http2Error error, String fmt, Object... args) Use if an error has occurred which can not be isolated to a single stream, but instead applies to the entire connection.static Http2ExceptionHttp2Exception.connectionError(Http2Error error, String fmt, Object... args) Use if an error has occurred which can not be isolated to a single stream, but instead applies to the entire connection.static Http2ExceptionHttp2Exception.connectionError(Http2Error error, Throwable cause, String fmt, Object... args) Use if an error has occurred which can not be isolated to a single stream, but instead applies to the entire connection.static Http2ExceptionHttp2CodecUtil.getEmbeddedHttp2Exception(Throwable cause) Iteratively looks through the causality chain for the given exception and returns the firstHttp2Exceptionornullif none.static Http2ExceptionHttp2Exception.headerListSizeError(int id, Http2Error error, boolean onDecode, String fmt, Object... args) A specific stream error resulting from failing to decode headers that exceeds the max header size list.(package private) static Http2ExceptionHttp2Exception.newStatic(Http2Error error, String message, Http2Exception.ShutdownHint shutdownHint, Class<?> clazz, String method) static Http2ExceptionHttp2Exception.streamError(int id, Http2Error error, String fmt, Object... args) Use if an error which can be isolated to a single stream has occurred.static Http2ExceptionHttp2Exception.streamError(int id, Http2Error error, Throwable cause, String fmt, Object... args) Use if an error which can be isolated to a single stream has occurred.Methods in io.netty.handler.codec.http2 with parameters of type Http2ExceptionModifier and TypeMethodDescriptionprivate ChannelFutureHttp2ConnectionHandler.goAway(ChannelHandlerContext ctx, Http2Exception cause, ChannelPromise promise) Close the remote endpoint with aGO_AWAYframe.static booleanHttp2Exception.isStreamError(Http2Exception e) Check if an exception is isolated to a single stream or the entire connection.protected voidHttp2ConnectionHandler.onConnectionError(ChannelHandlerContext ctx, boolean outbound, Throwable cause, Http2Exception http2Ex) Handler for a connection error.protected voidHttp2FrameCodec.onConnectionError(ChannelHandlerContext ctx, boolean outbound, Throwable cause, Http2Exception http2Ex) static intHttp2Exception.streamId(Http2Exception e) Get the stream id associated with an exception.private voidDefaultHttp2RemoteFlowController.FlowState.writeError(Http2RemoteFlowController.FlowControlled frame, Http2Exception cause) Discards thisHttp2RemoteFlowController.FlowControlled, writing an error.Methods in io.netty.handler.codec.http2 that throw Http2ExceptionModifier and TypeMethodDescription(package private) static Http2Stream.StateDefaultHttp2Connection.activeState(int streamId, Http2Stream.State initialState, boolean isLocal, boolean halfClosed) (package private) final voidDefaultHttp2FrameReader.HeadersBlockBuilder.addFragment(ByteBuf fragment, int len, ByteBufAllocator alloc, boolean endOfHeaders) Adds a fragment to the block.static voidHttpConversionUtil.addHttp2ToHttpHeaders(int streamId, Http2Headers inputHeaders, FullHttpMessage destinationMessage, boolean addToTrailer) Translate and add HTTP/2 headers to HTTP/1.x headers.static voidHttpConversionUtil.addHttp2ToHttpHeaders(int streamId, Http2Headers inputHeaders, HttpHeaders outputHeaders, HttpVersion httpVersion, boolean isTrailer, boolean isRequest) Translate and add HTTP/2 headers to HTTP/1.x headers.private voidDefaultHttp2ConnectionDecoder.FrameReadListener.applyLocalSettings(Http2Settings settings) Applies settings sent from the local endpoint.voidDefaultHttp2RemoteFlowController.channelHandlerContext(ChannelHandlerContext ctx) Set theChannelHandlerContextfor which to apply flow control on.voidDelegatingDecompressorFrameListener.ConsumedBytesConverter.channelHandlerContext(ChannelHandlerContext ctx) voidHttp2FlowController.channelHandlerContext(ChannelHandlerContext ctx) Set theChannelHandlerContextfor which to apply flow control on.(package private) voidDefaultHttp2RemoteFlowController.ListenerWritabilityMonitor.channelWritabilityChange()(package private) voidDefaultHttp2RemoteFlowController.WritabilityMonitor.channelWritabilityChange()Called when the writability of the underlying channel changes.voidDefaultHttp2RemoteFlowController.channelWritabilityChanged()voidHttp2RemoteFlowController.channelWritabilityChanged()Notification that the writability ofHttp2RemoteFlowController.channelHandlerContext()has changed.private voidDefaultHttp2RemoteFlowController.ListenerWritabilityMonitor.checkAllWritabilityChanged()private voidDefaultHttp2RemoteFlowController.ListenerWritabilityMonitor.checkConnectionThenStreamWritabilityChanged(DefaultHttp2RemoteFlowController.FlowState state) private voidDefaultHttp2Connection.DefaultEndpoint.checkNewStreamAllowed(int streamId, Http2Stream.State state) private voidDefaultHttp2RemoteFlowController.ListenerWritabilityMonitor.checkStateWritability(DefaultHttp2RemoteFlowController.FlowState state) private voidDefaultHttp2Connection.closeStreamsGreaterThanLastKnownStreamId(int lastKnownStream, DefaultHttp2Connection.DefaultEndpoint<?> endpoint) private booleanDefaultHttp2LocalFlowController.consumeAllBytes(DefaultHttp2LocalFlowController.FlowState state, int numBytes) booleanDefaultHttp2LocalFlowController.AutoRefillState.consumeBytes(int numBytes) booleanDefaultHttp2LocalFlowController.consumeBytes(Http2Stream stream, int numBytes) booleanDefaultHttp2LocalFlowController.DefaultState.consumeBytes(int numBytes) booleanDefaultHttp2LocalFlowController.FlowState.consumeBytes(int numBytes) Indicates that the application has consumednumBytesfrom the connection or stream and is ready to receive more data.booleanDelegatingDecompressorFrameListener.ConsumedBytesConverter.consumeBytes(Http2Stream stream, int numBytes) (package private) intDelegatingDecompressorFrameListener.Http2Decompressor.consumeBytes(int streamId, int decompressedBytes) Determines the ratio betweennumBytesandDelegatingDecompressorFrameListener.Http2Decompressor.decompressed.(package private) final booleanHttp2FrameCodec.consumeBytes(int streamId, int bytes) booleanHttp2LocalFlowController.consumeBytes(Http2Stream stream, int numBytes) Indicates that the application has consumed a number of bytes for the given stream and is therefore ready to receive more data from the remote endpoint.DefaultHttp2Connection.DefaultEndpoint.createStream(int streamId, boolean halfClosed) Http2Connection.Endpoint.createStream(int streamId, boolean halfClosed) Creates a stream initiated by this endpoint.(package private) voidHpackDecoder.decode(int streamId, ByteBuf in, Http2Headers headers, boolean validateHeaders) Decode the header block into header fields.private voidHpackDecoder.decode(ByteBuf in, HpackDecoder.Http2HeadersSink sink) Decompresses the given Huffman coded string literal.private voidHpackDecoder.decodeDynamicTableSizeUpdates(ByteBuf in) voidDecoratingHttp2ConnectionDecoder.decodeFrame(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) voidDefaultHttp2ConnectionDecoder.decodeFrame(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) voidHttp2ConnectionDecoder.decodeFrame(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) Called by theHttp2ConnectionHandlerto decode the next frame from the input buffer.DefaultHttp2HeadersDecoder.decodeHeaders(int streamId, ByteBuf headerBlock) Http2HeadersDecoder.decodeHeaders(int streamId, ByteBuf headerBlock) Decodes the given headers block and returns the headers.private Http2SettingsHttp2ServerUpgradeCodec.decodeSettings(ChannelHandlerContext ctx, ByteBuf frame) Decodes the settings frame and returns the settings.private Http2SettingsHttp2ServerUpgradeCodec.decodeSettingsHeader(ChannelHandlerContext ctx, CharSequence settingsHeader) Decodes the settings header and returns aHttp2Settingsobject.(package private) static intHpackDecoder.decodeULE128(ByteBuf in, int result) Unsigned Little Endian Base 128 Variable-Length Integer Encoding(package private) static longHpackDecoder.decodeULE128(ByteBuf in, long result) Unsigned Little Endian Base 128 Variable-Length Integer Encoding(package private) intDelegatingDecompressorFrameListener.Http2Decompressor.decompress(ChannelHandlerContext ctx, Http2Stream stream, ByteBuf data, int padding, boolean endOfStream) booleanStreamByteDistributor.distribute(int maxBytes, StreamByteDistributor.Writer writer) Distributes up tomaxBytesto those streams containing streamable bytes and iterates across those streams to write the appropriate bytes.booleanUniformStreamByteDistributor.distribute(int maxBytes, StreamByteDistributor.Writer writer) booleanWeightedFairQueueByteDistributor.distribute(int maxBytes, StreamByteDistributor.Writer writer) private intWeightedFairQueueByteDistributor.distribute(int maxBytes, StreamByteDistributor.Writer writer, WeightedFairQueueByteDistributor.State state) private intWeightedFairQueueByteDistributor.distributeToChildren(int maxBytes, StreamByteDistributor.Writer writer, WeightedFairQueueByteDistributor.State state) It is a pre-condition thatstate.poll()returns a non-nullvalue.voidDefaultHttp2HeadersEncoder.encodeHeaders(int streamId, Http2Headers headers, ByteBuf buffer) voidHpackEncoder.encodeHeaders(int streamId, ByteBuf out, Http2Headers headers, Http2HeadersEncoder.SensitivityDetector sensitivityDetector) Encode the header field into the header block.voidHttp2HeadersEncoder.encodeHeaders(int streamId, Http2Headers headers, ByteBuf buffer) Encodes the given headers and writes the output headers block to the given output buffer.private voidHpackEncoder.encodeHeadersEnforceMaxHeaderListSize(int streamId, ByteBuf out, Http2Headers headers, Http2HeadersEncoder.SensitivityDetector sensitivityDetector) (package private) voidDefaultHttp2RemoteFlowController.ListenerWritabilityMonitor.enqueueFrame(DefaultHttp2RemoteFlowController.FlowState state, Http2RemoteFlowController.FlowControlled frame) (package private) voidDefaultHttp2RemoteFlowController.WritabilityMonitor.enqueueFrame(DefaultHttp2RemoteFlowController.FlowState state, Http2RemoteFlowController.FlowControlled frame) Add a frame to be sent via flow control.(package private) voidHpackDecoder.Http2HeadersSink.finish()private voidHttp2MultiplexHandler.fireExceptionCaughtForActiveStream(Throwable cause) DefaultHttp2Connection.ActiveStreams.forEachActiveStream(Http2StreamVisitor visitor) DefaultHttp2Connection.forEachActiveStream(Http2StreamVisitor visitor) protected final voidHttp2ChannelDuplexHandler.forEachActiveStream(Http2FrameStreamVisitor streamVisitor) Allows to iterate over all currently active streams.Http2Connection.forEachActiveStream(Http2StreamVisitor visitor) Provide a means of iterating over the collection of active streams.(package private) final voidHttp2FrameCodec.forEachActiveStream(Http2FrameStreamVisitor streamVisitor) Iterates over all active HTTP/2 streams.private HpackHeaderFieldHpackDecoder.getIndexedHeader(int index) protected CharSequenceCompressorHttp2ConnectionEncoder.getTargetContentEncoding(CharSequence contentEncoding) Returns the expected content encoding of the decoded content.protected CharSequenceDelegatingDecompressorFrameListener.getTargetContentEncoding(CharSequence contentEncoding) Returns the expected content encoding of the decoded content.voidDefaultHttp2Connection.goAwayReceived(int lastKnownStream, long errorCode, ByteBuf debugData) voidHttp2Connection.goAwayReceived(int lastKnownStream, long errorCode, ByteBuf message) Indicates that aGOAWAYwas received from the remote endpoint and sets the last known stream.booleanDefaultHttp2Connection.goAwaySent(int lastKnownStream, long errorCode, ByteBuf debugData) booleanHttp2Connection.goAwaySent(int lastKnownStream, long errorCode, ByteBuf message) Updates the local state of thisHttp2Connectionas a result of aGOAWAYto send to the remote endpoint.(package private) static voidInboundHttpToHttp2Adapter.handle(ChannelHandlerContext ctx, Http2Connection connection, Http2FrameListener listener, FullHttpMessage message) static voidHttp2CodecUtil.headerListSizeExceeded(int streamId, long maxHeaderListSize, boolean onDecode) Results in a RST_STREAM being sent forstreamIddue to violating SETTINGS_MAX_HEADER_LIST_SIZE.static voidHttp2CodecUtil.headerListSizeExceeded(long maxHeaderListSize) Results in a GO_AWAY being sent due to violating SETTINGS_MAX_HEADER_LIST_SIZE in an unrecoverable manner.(package private) Http2HeadersDefaultHttp2FrameReader.HeadersBlockBuilder.headers()Builds the headers from the completed headers block.private voidDefaultHttp2FrameReader.HeadersBlockBuilder.headerSizeExceeded()The local header size maximum has been exceeded while accumulating bytes.private voidHttp2FrameCodec.increaseInitialConnectionWindow(int deltaBytes) (package private) voidDefaultHttp2ConnectionDecoder.ContentLength.increaseReceivedBytes(boolean server, int streamId, int bytes, boolean isEnd) voidDefaultHttp2LocalFlowController.DefaultState.incrementFlowControlWindows(int delta) voidDefaultHttp2LocalFlowController.FlowState.incrementFlowControlWindows(int delta) Increment the windows which are used to determine many bytes have been processed.(package private) intDefaultHttp2RemoteFlowController.FlowState.incrementStreamWindow(int delta) Increments the flow control window for this stream by the given delta and returns the new value.voidDefaultHttp2LocalFlowController.incrementWindowSize(Http2Stream stream, int delta) voidDefaultHttp2RemoteFlowController.incrementWindowSize(Http2Stream stream, int delta) (package private) voidDefaultHttp2RemoteFlowController.ListenerWritabilityMonitor.incrementWindowSize(DefaultHttp2RemoteFlowController.FlowState state, int delta) (package private) voidDefaultHttp2RemoteFlowController.WritabilityMonitor.incrementWindowSize(DefaultHttp2RemoteFlowController.FlowState state, int delta) Increment the window size for a particular stream.voidDelegatingDecompressorFrameListener.ConsumedBytesConverter.incrementWindowSize(Http2Stream stream, int delta) voidHttp2FlowController.incrementWindowSize(Http2Stream stream, int delta) Increments the size of the stream's flow control window by the given delta.private voidDelegatingDecompressorFrameListener.initDecompressor(ChannelHandlerContext ctx, int streamId, Http2Headers headers, boolean endOfStream) Checks if a new decompressor object is needed for the stream identified bystreamId.voidDefaultHttp2LocalFlowController.initialWindowSize(int newWindowSize) voidDefaultHttp2RemoteFlowController.initialWindowSize(int newWindowSize) (package private) voidDefaultHttp2RemoteFlowController.ListenerWritabilityMonitor.initialWindowSize(int newWindowSize) (package private) voidDefaultHttp2RemoteFlowController.WritabilityMonitor.initialWindowSize(int newWindowSize) voidDelegatingDecompressorFrameListener.ConsumedBytesConverter.initialWindowSize(int newWindowSize) voidHttp2FlowController.initialWindowSize(int newWindowSize) Sets the connection-wide initial flow control window and updates all stream windows (but not the connection stream window) by the delta.private static intDefaultHttp2FrameReader.lengthWithoutTrailingPadding(int readableBytes, int padding) The padding parameter consists of the 1 byte pad length field and the trailing padding bytes.voidDefaultHttp2FrameReader.maxFrameSize(int max) voidDefaultHttp2FrameWriter.maxFrameSize(int max) voidHttp2FrameSizePolicy.maxFrameSize(int max) Sets the maximum allowed frame size.voidDefaultHttp2HeadersDecoder.maxHeaderListSize(long max, long goAwayMax) voidDefaultHttp2HeadersEncoder.maxHeaderListSize(long max) voidHttp2HeadersDecoder.Configuration.maxHeaderListSize(long max, long goAwayMax) Configure the maximum allowed size in bytes of each set of headers.voidHttp2HeadersEncoder.Configuration.maxHeaderListSize(long max) Represents the value for SETTINGS_MAX_HEADER_LIST_SIZE.voidDefaultHttp2HeadersDecoder.maxHeaderTableSize(long max) voidDefaultHttp2HeadersEncoder.maxHeaderTableSize(long max) voidHttp2HeadersDecoder.Configuration.maxHeaderTableSize(long max) Represents the value for SETTINGS_HEADER_TABLE_SIZE.voidHttp2HeadersEncoder.Configuration.maxHeaderTableSize(long max) Represents the value for SETTINGS_HEADER_TABLE_SIZE.private EmbeddedChannelCompressorHttp2ConnectionEncoder.newCompressor(ChannelHandlerContext ctx, Http2Headers headers, boolean endOfStream) Checks if a new compressor object is needed for the stream identified bystreamId.protected EmbeddedChannelCompressorHttp2ConnectionEncoder.newContentCompressor(ChannelHandlerContext ctx, CharSequence contentEncoding) Returns a newEmbeddedChannelthat encodes the HTTP2 message content encoded in the specifiedcontentEncoding.protected EmbeddedChannelDelegatingDecompressorFrameListener.newContentDecompressor(ChannelHandlerContext ctx, CharSequence contentEncoding) Returns a newEmbeddedChannelthat decodes the HTTP2 message content encoded in the specifiedcontentEncoding.private FullHttpMessageHttp2StreamFrameToHttpObjectCodec.newFullMessage(int id, Http2Headers headers, ByteBufAllocator alloc) private HttpMessageHttp2StreamFrameToHttpObjectCodec.newMessage(int id, Http2Headers headers) protected FullHttpMessageInboundHttp2ToHttpAdapter.newMessage(Http2Stream stream, Http2Headers headers, boolean validateHttpHeaders, ByteBufAllocator alloc) Create a newFullHttpMessagebased upon the current connection parametersintDefaultHttp2ConnectionDecoder.FrameReadListener.onDataRead(ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endOfStream) intDefaultHttp2ConnectionDecoder.PrefaceFrameListener.onDataRead(ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endOfStream) intDelegatingDecompressorFrameListener.onDataRead(ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endOfStream) intHttp2EmptyDataFrameListener.onDataRead(ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endOfStream) intHttp2EventAdapter.onDataRead(ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endOfStream) intHttp2FrameAdapter.onDataRead(ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endOfStream) intHttp2FrameListener.onDataRead(ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endOfStream) Handles an inboundDATAframe.intHttp2FrameListenerDecorator.onDataRead(ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endOfStream) intInboundHttp2ToHttpAdapter.onDataRead(ChannelHandlerContext ctx, int streamId, ByteBuf data, int padding, boolean endOfStream) voidDefaultHttp2ConnectionDecoder.FrameReadListener.onGoAwayRead(ChannelHandlerContext ctx, int lastStreamId, long errorCode, ByteBuf debugData) voidDefaultHttp2ConnectionDecoder.PrefaceFrameListener.onGoAwayRead(ChannelHandlerContext ctx, int lastStreamId, long errorCode, ByteBuf debugData) voidHttp2EventAdapter.onGoAwayRead(ChannelHandlerContext ctx, int lastStreamId, long errorCode, ByteBuf debugData) voidHttp2FrameAdapter.onGoAwayRead(ChannelHandlerContext ctx, int lastStreamId, long errorCode, ByteBuf debugData) voidHttp2FrameListener.onGoAwayRead(ChannelHandlerContext ctx, int lastStreamId, long errorCode, ByteBuf debugData) Handles an inboundGO_AWAYframe.voidHttp2FrameListenerDecorator.onGoAwayRead(ChannelHandlerContext ctx, int lastStreamId, long errorCode, ByteBuf debugData) (package private) voidDefaultHttp2ConnectionDecoder.onGoAwayRead0(ChannelHandlerContext ctx, int lastStreamId, long errorCode, ByteBuf debugData) voidDefaultHttp2ConnectionDecoder.FrameReadListener.onHeadersRead(ChannelHandlerContext ctx, int streamId, Http2Headers headers, int padding, boolean endOfStream) voidDefaultHttp2ConnectionDecoder.FrameReadListener.onHeadersRead(ChannelHandlerContext ctx, int streamId, Http2Headers headers, int streamDependency, short weight, boolean exclusive, int padding, boolean endOfStream) voidDefaultHttp2ConnectionDecoder.PrefaceFrameListener.onHeadersRead(ChannelHandlerContext ctx, int streamId, Http2Headers headers, int padding, boolean endOfStream) voidDefaultHttp2ConnectionDecoder.PrefaceFrameListener.onHeadersRead(ChannelHandlerContext ctx, int streamId, Http2Headers headers, int streamDependency, short weight, boolean exclusive, int padding, boolean endOfStream) voidDelegatingDecompressorFrameListener.onHeadersRead(ChannelHandlerContext ctx, int streamId, Http2Headers headers, int padding, boolean endStream) voidDelegatingDecompressorFrameListener.onHeadersRead(ChannelHandlerContext ctx, int streamId, Http2Headers headers, int streamDependency, short weight, boolean exclusive, int padding, boolean endStream) voidHttp2EmptyDataFrameListener.onHeadersRead(ChannelHandlerContext ctx, int streamId, Http2Headers headers, int padding, boolean endStream) voidHttp2EmptyDataFrameListener.onHeadersRead(ChannelHandlerContext ctx, int streamId, Http2Headers headers, int streamDependency, short weight, boolean exclusive, int padding, boolean endStream) voidHttp2EventAdapter.onHeadersRead(ChannelHandlerContext ctx, int streamId, Http2Headers headers, int padding, boolean endStream) voidHttp2EventAdapter.onHeadersRead(ChannelHandlerContext ctx, int streamId, Http2Headers headers, int streamDependency, short weight, boolean exclusive, int padding, boolean endStream) voidHttp2FrameAdapter.onHeadersRead(ChannelHandlerContext ctx, int streamId, Http2Headers headers, int padding, boolean endStream) voidHttp2FrameAdapter.onHeadersRead(ChannelHandlerContext ctx, int streamId, Http2Headers headers, int streamDependency, short weight, boolean exclusive, int padding, boolean endStream) voidHttp2FrameListener.onHeadersRead(ChannelHandlerContext ctx, int streamId, Http2Headers headers, int padding, boolean endOfStream) Handles an inboundHEADERSframe.voidHttp2FrameListener.onHeadersRead(ChannelHandlerContext ctx, int streamId, Http2Headers headers, int streamDependency, short weight, boolean exclusive, int padding, boolean endOfStream) Handles an inboundHEADERSframe with priority information specified.voidHttp2FrameListenerDecorator.onHeadersRead(ChannelHandlerContext ctx, int streamId, Http2Headers headers, int padding, boolean endStream) voidHttp2FrameListenerDecorator.onHeadersRead(ChannelHandlerContext ctx, int streamId, Http2Headers headers, int streamDependency, short weight, boolean exclusive, int padding, boolean endStream) voidInboundHttp2ToHttpAdapter.onHeadersRead(ChannelHandlerContext ctx, int streamId, Http2Headers headers, int padding, boolean endOfStream) voidInboundHttp2ToHttpAdapter.onHeadersRead(ChannelHandlerContext ctx, int streamId, Http2Headers headers, int streamDependency, short weight, boolean exclusive, int padding, boolean endOfStream) voidHttp2ConnectionHandler.onHttpClientUpgrade()Handles the client-side (cleartext) upgrade from HTTP to HTTP/2.voidHttp2MultiplexCodec.onHttpClientUpgrade()Deprecated.voidHttp2ConnectionHandler.onHttpServerUpgrade(Http2Settings settings) Handles the server-side (cleartext) upgrade from HTTP to HTTP/2.voidDefaultHttp2ConnectionDecoder.FrameReadListener.onPingAckRead(ChannelHandlerContext ctx, long data) voidDefaultHttp2ConnectionDecoder.PrefaceFrameListener.onPingAckRead(ChannelHandlerContext ctx, long data) voidHttp2EventAdapter.onPingAckRead(ChannelHandlerContext ctx, long data) voidHttp2FrameAdapter.onPingAckRead(ChannelHandlerContext ctx, long data) voidHttp2FrameListener.onPingAckRead(ChannelHandlerContext ctx, long data) Handles an inboundPINGacknowledgment.voidHttp2FrameListenerDecorator.onPingAckRead(ChannelHandlerContext ctx, long data) voidDefaultHttp2ConnectionDecoder.FrameReadListener.onPingRead(ChannelHandlerContext ctx, long data) voidDefaultHttp2ConnectionDecoder.PrefaceFrameListener.onPingRead(ChannelHandlerContext ctx, long data) voidHttp2EventAdapter.onPingRead(ChannelHandlerContext ctx, long data) voidHttp2FrameAdapter.onPingRead(ChannelHandlerContext ctx, long data) voidHttp2FrameListener.onPingRead(ChannelHandlerContext ctx, long data) Handles an inboundPINGframe.voidHttp2FrameListenerDecorator.onPingRead(ChannelHandlerContext ctx, long data) voidDefaultHttp2ConnectionDecoder.FrameReadListener.onPriorityRead(ChannelHandlerContext ctx, int streamId, int streamDependency, short weight, boolean exclusive) voidDefaultHttp2ConnectionDecoder.PrefaceFrameListener.onPriorityRead(ChannelHandlerContext ctx, int streamId, int streamDependency, short weight, boolean exclusive) voidHttp2EventAdapter.onPriorityRead(ChannelHandlerContext ctx, int streamId, int streamDependency, short weight, boolean exclusive) voidHttp2FrameAdapter.onPriorityRead(ChannelHandlerContext ctx, int streamId, int streamDependency, short weight, boolean exclusive) voidHttp2FrameListener.onPriorityRead(ChannelHandlerContext ctx, int streamId, int streamDependency, short weight, boolean exclusive) Handles an inboundPRIORITYframe.voidHttp2FrameListenerDecorator.onPriorityRead(ChannelHandlerContext ctx, int streamId, int streamDependency, short weight, boolean exclusive) voidDefaultHttp2ConnectionDecoder.FrameReadListener.onPushPromiseRead(ChannelHandlerContext ctx, int streamId, int promisedStreamId, Http2Headers headers, int padding) voidDefaultHttp2ConnectionDecoder.PrefaceFrameListener.onPushPromiseRead(ChannelHandlerContext ctx, int streamId, int promisedStreamId, Http2Headers headers, int padding) voidHttp2EventAdapter.onPushPromiseRead(ChannelHandlerContext ctx, int streamId, int promisedStreamId, Http2Headers headers, int padding) voidHttp2FrameAdapter.onPushPromiseRead(ChannelHandlerContext ctx, int streamId, int promisedStreamId, Http2Headers headers, int padding) voidHttp2FrameListener.onPushPromiseRead(ChannelHandlerContext ctx, int streamId, int promisedStreamId, Http2Headers headers, int padding) Handles an inboundPUSH_PROMISEframe.voidHttp2FrameListenerDecorator.onPushPromiseRead(ChannelHandlerContext ctx, int streamId, int promisedStreamId, Http2Headers headers, int padding) voidInboundHttp2ToHttpAdapter.onPushPromiseRead(ChannelHandlerContext ctx, int streamId, int promisedStreamId, Http2Headers headers, int padding) voidDefaultHttp2ConnectionDecoder.FrameReadListener.onRstStreamRead(ChannelHandlerContext ctx, int streamId, long errorCode) voidDefaultHttp2ConnectionDecoder.PrefaceFrameListener.onRstStreamRead(ChannelHandlerContext ctx, int streamId, long errorCode) voidHttp2EventAdapter.onRstStreamRead(ChannelHandlerContext ctx, int streamId, long errorCode) voidHttp2FrameAdapter.onRstStreamRead(ChannelHandlerContext ctx, int streamId, long errorCode) voidHttp2FrameListener.onRstStreamRead(ChannelHandlerContext ctx, int streamId, long errorCode) Handles an inboundRST_STREAMframe.voidHttp2FrameListenerDecorator.onRstStreamRead(ChannelHandlerContext ctx, int streamId, long errorCode) voidHttp2MaxRstFrameListener.onRstStreamRead(ChannelHandlerContext ctx, int streamId, long errorCode) voidInboundHttp2ToHttpAdapter.onRstStreamRead(ChannelHandlerContext ctx, int streamId, long errorCode) voidDefaultHttp2ConnectionDecoder.FrameReadListener.onSettingsAckRead(ChannelHandlerContext ctx) voidDefaultHttp2ConnectionDecoder.PrefaceFrameListener.onSettingsAckRead(ChannelHandlerContext ctx) voidHttp2EventAdapter.onSettingsAckRead(ChannelHandlerContext ctx) voidHttp2FrameAdapter.onSettingsAckRead(ChannelHandlerContext ctx) voidHttp2FrameListener.onSettingsAckRead(ChannelHandlerContext ctx) Handles an inboundSETTINGSacknowledgment frame.voidHttp2FrameListenerDecorator.onSettingsAckRead(ChannelHandlerContext ctx) voidDefaultHttp2ConnectionDecoder.FrameReadListener.onSettingsRead(ChannelHandlerContext ctx, Http2Settings settings) voidDefaultHttp2ConnectionDecoder.PrefaceFrameListener.onSettingsRead(ChannelHandlerContext ctx, Http2Settings settings) voidHttp2EventAdapter.onSettingsRead(ChannelHandlerContext ctx, Http2Settings settings) voidHttp2FrameAdapter.onSettingsRead(ChannelHandlerContext ctx, Http2Settings settings) voidHttp2FrameListener.onSettingsRead(ChannelHandlerContext ctx, Http2Settings settings) Handles an inboundSETTINGSframe.voidHttp2FrameListenerDecorator.onSettingsRead(ChannelHandlerContext ctx, Http2Settings settings) voidInboundHttp2ToHttpAdapter.onSettingsRead(ChannelHandlerContext ctx, Http2Settings settings) voidDefaultHttp2ConnectionDecoder.FrameReadListener.onUnknownFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, ByteBuf payload) voidDefaultHttp2ConnectionDecoder.PrefaceFrameListener.onUnknownFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, ByteBuf payload) voidHttp2EventAdapter.onUnknownFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, ByteBuf payload) voidHttp2FrameListener.onUnknownFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, ByteBuf payload) Handler for a frame not defined by the HTTP/2 spec.voidHttp2FrameListenerDecorator.onUnknownFrame(ChannelHandlerContext ctx, byte frameType, int streamId, Http2Flags flags, ByteBuf payload) voidDefaultHttp2ConnectionDecoder.FrameReadListener.onWindowUpdateRead(ChannelHandlerContext ctx, int streamId, int windowSizeIncrement) voidDefaultHttp2ConnectionDecoder.PrefaceFrameListener.onWindowUpdateRead(ChannelHandlerContext ctx, int streamId, int windowSizeIncrement) voidHttp2EventAdapter.onWindowUpdateRead(ChannelHandlerContext ctx, int streamId, int windowSizeIncrement) voidHttp2FrameAdapter.onWindowUpdateRead(ChannelHandlerContext ctx, int streamId, int windowSizeIncrement) voidHttp2FrameListener.onWindowUpdateRead(ChannelHandlerContext ctx, int streamId, int windowSizeIncrement) Handles an inboundWINDOW_UPDATEframe.voidHttp2FrameListenerDecorator.onWindowUpdateRead(ChannelHandlerContext ctx, int streamId, int windowSizeIncrement) DefaultHttp2Connection.DefaultStream.open(boolean halfClosed) Http2Stream.open(boolean halfClosed) Opens this stream, making it available viaHttp2Connection.forEachActiveStream(Http2StreamVisitor)and transition state to:Http2Stream.State.OPENifHttp2Stream.state()isHttp2Stream.State.IDLEandhalfClosedisfalse.Http2Stream.State.HALF_CLOSED_LOCALifHttp2Stream.state()isHttp2Stream.State.IDLEandhalfClosedistrueand the stream is local.static HttpResponseStatusHttpConversionUtil.parseStatus(CharSequence status) Apply HTTP/2 rules while translating status code toHttpResponseStatusprivate booleanDefaultHttp2FrameReader.preProcessFrame(ByteBuf in) (package private) abstract voidDefaultHttp2FrameReader.HeadersContinuation.processFragment(boolean endOfHeaders, ByteBuf fragment, int len, Http2FrameListener listener) Processes the next fragment for the current header block.protected FullHttpMessageInboundHttp2ToHttpAdapter.processHeadersBegin(ChannelHandlerContext ctx, Http2Stream stream, Http2Headers headers, boolean endOfStream, boolean allowAppend, boolean appendToTrailer) Provides translation between HTTP/2 and HTTP header objects while ensuring the stream is in a valid state for additional headers.private voidDefaultHttp2FrameReader.processPayloadState(ChannelHandlerContext ctx, ByteBuf in, Http2FrameListener listener) private booleanHttp2ConnectionHandler.PrefaceDecoder.readClientPrefaceString(ByteBuf in) Decodes the client connection preface string from the input buffer.private voidDefaultHttp2FrameReader.readContinuationFrame(ByteBuf payload, Http2FrameListener listener) private voidDefaultHttp2FrameReader.readDataFrame(ChannelHandlerContext ctx, ByteBuf payload, Http2FrameListener listener) voidDefaultHttp2FrameReader.readFrame(ChannelHandlerContext ctx, ByteBuf input, Http2FrameListener listener) voidHttp2FrameReader.readFrame(ChannelHandlerContext ctx, ByteBuf input, Http2FrameListener listener) Attempts to read the next frame from the input buffer.voidHttp2InboundFrameLogger.readFrame(ChannelHandlerContext ctx, ByteBuf input, Http2FrameListener listener) private voidDefaultHttp2FrameReader.readGoAwayFrame(ChannelHandlerContext ctx, ByteBuf payload, Http2FrameListener listener) private voidDefaultHttp2FrameReader.readHeadersFrame(ChannelHandlerContext ctx, ByteBuf payload, Http2FrameListener listener) private AsciiStringHpackDecoder.readName(int index) private voidDefaultHttp2FrameReader.readPingFrame(ChannelHandlerContext ctx, long data, Http2FrameListener listener) private voidDefaultHttp2FrameReader.readPriorityFrame(ChannelHandlerContext ctx, ByteBuf payload, Http2FrameListener listener) private voidDefaultHttp2FrameReader.readPushPromiseFrame(ChannelHandlerContext ctx, ByteBuf payload, Http2FrameListener listener) private voidDefaultHttp2FrameReader.readRstStreamFrame(ChannelHandlerContext ctx, ByteBuf payload, Http2FrameListener listener) private voidDefaultHttp2FrameReader.readSettingsFrame(ChannelHandlerContext ctx, ByteBuf payload, Http2FrameListener listener) private AsciiStringHpackDecoder.readStringLiteral(ByteBuf in, int length, boolean huffmanEncoded) private voidDefaultHttp2FrameReader.readUnknownFrame(ChannelHandlerContext ctx, ByteBuf payload, Http2FrameListener listener) private voidDefaultHttp2FrameReader.readWindowUpdateFrame(ChannelHandlerContext ctx, ByteBuf payload, Http2FrameListener listener) voidDefaultHttp2LocalFlowController.AutoRefillState.receiveFlowControlledFrame(int dataLength) voidDefaultHttp2LocalFlowController.DefaultState.receiveFlowControlledFrame(int dataLength) voidDefaultHttp2LocalFlowController.FlowState.receiveFlowControlledFrame(int dataLength) A flow control event has occurred and we should decrement the amount of available bytes for this stream.voidDefaultHttp2LocalFlowController.receiveFlowControlledFrame(Http2Stream stream, ByteBuf data, int padding, boolean endOfStream) voidDelegatingDecompressorFrameListener.ConsumedBytesConverter.receiveFlowControlledFrame(Http2Stream stream, ByteBuf data, int padding, boolean endOfStream) voidHttp2LocalFlowController.receiveFlowControlledFrame(Http2Stream stream, ByteBuf data, int padding, boolean endOfStream) Receives an inboundDATAframe from the remote endpoint and applies flow control policies to it for both thestreamas well as the connection.voidDecoratingHttp2ConnectionEncoder.remoteSettings(Http2Settings settings) voidDefaultHttp2ConnectionEncoder.remoteSettings(Http2Settings settings) voidHttp2ConnectionEncoder.remoteSettings(Http2Settings settings) Sets the settings for the remote endpoint of the HTTP/2 connection.voidStreamBufferingEncoder.remoteSettings(Http2Settings settings) DefaultHttp2Connection.DefaultEndpoint.reservePushStream(int streamId, Http2Stream parent) Http2Connection.Endpoint.reservePushStream(int streamId, Http2Stream parent) Creates a push stream in the reserved state for this endpoint and notifies all listeners.private voidDefaultHttp2LocalFlowController.DefaultState.returnProcessedBytes(int delta) private voidHpackDecoder.setDynamicTableSize(long dynamicTableSize) (package private) voidHpackDecoder.setMaxHeaderListSize(long maxHeaderListSize) voidHpackEncoder.setMaxHeaderListSize(long maxHeaderListSize) (package private) voidHpackDecoder.setMaxHeaderTableSize(long maxHeaderTableSize) Set the maximum table size.voidHpackEncoder.setMaxHeaderTableSize(ByteBuf out, long maxHeaderTableSize) Set the maximum table size.private booleanDefaultHttp2ConnectionDecoder.FrameReadListener.shouldIgnoreHeadersOrDataFrame(ChannelHandlerContext ctx, int streamId, Http2Stream stream, boolean endOfStream, String frameName) Helper method to determine if a frame that has the semantics of headers or data should be ignored for thestream(which may benull) associated withstreamId.static FullHttpRequestHttpConversionUtil.toFullHttpRequest(int streamId, Http2Headers http2Headers, ByteBufAllocator alloc, boolean validateHttpHeaders) Create a new object to contain the request datastatic FullHttpRequestHttpConversionUtil.toFullHttpRequest(int streamId, Http2Headers http2Headers, ByteBuf content, boolean validateHttpHeaders) Create a new object to contain the request datastatic FullHttpResponseHttpConversionUtil.toFullHttpResponse(int streamId, Http2Headers http2Headers, ByteBufAllocator alloc, boolean validateHttpHeaders) Create a new object to contain the response datastatic FullHttpResponseHttpConversionUtil.toFullHttpResponse(int streamId, Http2Headers http2Headers, ByteBuf content, boolean validateHttpHeaders) Create a new object to contain the response datastatic HttpRequestHttpConversionUtil.toHttpRequest(int streamId, Http2Headers http2Headers, boolean validateHttpHeaders) Create a new object to contain the request data.static HttpResponseHttpConversionUtil.toHttpResponse(int streamId, Http2Headers http2Headers, boolean validateHttpHeaders) Create a new object to contain the response data.(package private) voidHttpConversionUtil.Http2ToHttpHeaderTranslator.translateHeaders(Iterable<Map.Entry<CharSequence, CharSequence>> inputHeaders) private voidHttp2FrameCodec.tryExpandConnectionFlowControlWindow(Http2Connection connection) private static HpackDecoder.HeaderTypeHpackDecoder.validateHeader(int streamId, AsciiString name, CharSequence value, HpackDecoder.HeaderType previousHeaderType) private voidDefaultHttp2FrameReader.verifyAssociatedWithAStream()private voidDefaultHttp2ConnectionDecoder.verifyContentLength(Http2Stream stream, int data, boolean isEnd) private voidDefaultHttp2FrameReader.verifyContinuationFrame()private voidDefaultHttp2FrameReader.verifyDataFrame()private booleanHttp2ConnectionHandler.PrefaceDecoder.verifyFirstFrameIsSettings(ByteBuf in) Peeks at that the next frame in the buffer and verifies that it is a non-ackSETTINGSframe.private voidDefaultHttp2FrameReader.verifyFrameState()private voidDefaultHttp2FrameReader.verifyGoAwayFrame()private voidDefaultHttp2FrameReader.verifyHeadersFrame()private voidDefaultHttp2FrameReader.verifyNotProcessingHeaders()Verify that current state is not processing on header blockprivate voidDefaultHttp2FrameReader.verifyPingFrame()private voidDefaultHttp2ConnectionDecoder.PrefaceFrameListener.verifyPrefaceReceived()Verifies that the HTTP/2 connection preface has been received from the remote endpoint.private voidDefaultHttp2FrameReader.verifyPriorityFrame()private voidDefaultHttp2FrameReader.verifyPushPromiseFrame()private voidDefaultHttp2FrameReader.verifyRstStreamFrame()private voidDefaultHttp2FrameReader.verifySettingsFrame()private voidDefaultHttp2ConnectionDecoder.FrameReadListener.verifyStreamMayHaveExisted(int streamId, boolean endOfStream, String frameName) private static voidDefaultHttp2FrameReader.verifyStreamOrConnectionId(int streamId, String argumentName) private voidDefaultHttp2FrameReader.verifyUnknownFrame()private voidDefaultHttp2FrameReader.verifyWindowUpdateFrame()booleanDefaultHttp2LocalFlowController.WindowUpdateVisitor.visit(Http2Stream stream) booleanDefaultHttp2RemoteFlowController.ListenerWritabilityMonitor.visit(Http2Stream stream) booleanHttp2StreamVisitor.visit(Http2Stream stream) floatDefaultHttp2LocalFlowController.windowUpdateRatio(Http2Stream stream) The window update ratio is used to determine when a window update must be sent.voidDefaultHttp2LocalFlowController.windowUpdateRatio(Http2Stream stream, float ratio) The window update ratio is used to determine when a window update must be sent.(package private) voidUniformStreamByteDistributor.State.write(int numBytes, StreamByteDistributor.Writer writer) Write any allocated bytes for the given stream and updates the streamable bytes, assuming all of the bytes will be written.(package private) voidWeightedFairQueueByteDistributor.State.write(int numBytes, StreamByteDistributor.Writer writer) (package private) final voidDefaultHttp2RemoteFlowController.WritabilityMonitor.writePendingBytes()voidDefaultHttp2RemoteFlowController.writePendingBytes()voidHttp2RemoteFlowController.writePendingBytes()Write all data pending in the flow controller up to the flow-control limits.private voidDefaultHttp2LocalFlowController.DefaultState.writeWindowUpdate()Called to perform a window update for this stream (or connection).booleanDefaultHttp2LocalFlowController.DefaultState.writeWindowUpdateIfNeeded()booleanDefaultHttp2LocalFlowController.FlowState.writeWindowUpdateIfNeeded()Updates the flow control window for this stream if it is appropriate.