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 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.Methods 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.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 TypeMethodDescriptionstatic 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.Methods in io.netty.handler.codec.http2 that throw Http2ExceptionModifier and TypeMethodDescriptionstatic 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.voidDefaultHttp2RemoteFlowController.channelHandlerContext(ChannelHandlerContext ctx) Set theChannelHandlerContextfor which to apply flow control on.voidHttp2FlowController.channelHandlerContext(ChannelHandlerContext ctx) Set theChannelHandlerContextfor which to apply flow control on.voidDefaultHttp2RemoteFlowController.channelWritabilityChanged()voidHttp2RemoteFlowController.channelWritabilityChanged()Notification that the writability ofHttp2RemoteFlowController.channelHandlerContext()has changed.booleanDefaultHttp2LocalFlowController.consumeBytes(Http2Stream stream, int numBytes) 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.Http2Connection.Endpoint.createStream(int streamId, boolean halfClosed) Creates a stream initiated by this endpoint.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.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) voidDefaultHttp2HeadersEncoder.encodeHeaders(int streamId, Http2Headers headers, ByteBuf buffer) voidHttp2HeadersEncoder.encodeHeaders(int streamId, Http2Headers headers, ByteBuf buffer) Encodes the given headers and writes the output headers block to the given output buffer.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.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.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.voidDefaultHttp2LocalFlowController.incrementWindowSize(Http2Stream stream, int delta) voidDefaultHttp2RemoteFlowController.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.voidDefaultHttp2LocalFlowController.initialWindowSize(int newWindowSize) voidDefaultHttp2RemoteFlowController.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.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.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.protected FullHttpMessageInboundHttp2ToHttpAdapter.newMessage(Http2Stream stream, Http2Headers headers, boolean validateHttpHeaders, ByteBufAllocator alloc) Create a newFullHttpMessagebased upon the current connection parametersintDelegatingDecompressorFrameListener.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) 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) 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) 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.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) 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) 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) 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) 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) voidInboundHttp2ToHttpAdapter.onRstStreamRead(ChannelHandlerContext ctx, int streamId, long errorCode) voidHttp2EventAdapter.onSettingsAckRead(ChannelHandlerContext ctx) voidHttp2FrameAdapter.onSettingsAckRead(ChannelHandlerContext ctx) voidHttp2FrameListener.onSettingsAckRead(ChannelHandlerContext ctx) Handles an inboundSETTINGSacknowledgment frame.voidHttp2FrameListenerDecorator.onSettingsAckRead(ChannelHandlerContext ctx) 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) 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) 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) 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 toHttpResponseStatusprotected 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.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) voidDefaultHttp2LocalFlowController.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) Http2Connection.Endpoint.reservePushStream(int streamId, Http2Stream parent) Creates a push stream in the reserved state for this endpoint and notifies all listeners.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.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.voidDefaultHttp2RemoteFlowController.writePendingBytes()voidHttp2RemoteFlowController.writePendingBytes()Write all data pending in the flow controller up to the flow-control limits.