| Modifier and Type | Field and Description |
|---|---|
| private Handler | |
| private ChannelHandlerContext | |
| private Promise | |
| private C | |
| private final Function | |
| private final Http2Settings | |
| private boolean | |
| private Handler | |
| private boolean | |
| public boolean | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public | VertxHttp2ConnectionHandler(Function<VertxHttp2ConnectionHandler<C>, C> connectionFactory, boolean useDecompressor, Http2ConnectionDecoder decoder, Http2ConnectionEncoder encoder, Http2Settings initialSettings)
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| public VertxHttp2ConnectionHandler | Returns: thisthe handler to be notified handler)Set an handler to be called when the connection is set on this handler. |
| public void | channelInactive(ChannelHandlerContext chctx)
Overrides io. Implements io. Calls |
| public void | channelRead(ChannelHandlerContext ctx, Object msg)
Overrides io. Implements io. Calls |
| public void | channelReadComplete(ChannelHandlerContext ctx)
Overrides io. Implements io. Calls |
| private void | |
| public void | |
| public Future | |
| pack-priv void | consume(Http2Stream stream, int numBytes)
Consume |
| public ChannelHandlerContext | |
| public void | exceptionCaught(ChannelHandlerContext ctx, Throwable cause)
Overrides io. Implements io. Handles |
| public void | handlerAdded(ChannelHandlerContext ctx)
Overrides io. Implements io. Gets called after the |
| public Http2Settings | |
| pack-priv int | |
| protected void | onConnectionError(ChannelHandlerContext
the channel context ctx, boolean true if the error was caused by an outbound operation.the exception that was caught cause, Http2Exception the http2Ex)Http2Exception that is embedded in the causality chain. This may
be null if it's an unknown exception.Overrides io. Handler for a connection error. |
| public int | onDataRead(ChannelHandlerContext
the context from the handler where the frame was read. ctx, int the subject stream for the frame. streamId, ByteBuf payload buffer for the frame. This buffer will be released by the codec. data, int additional bytes that should be added to obscure the true content size. Must be between 0 and
256 (inclusive). padding, boolean Indicates whether this is the last frame to be sent from the remote endpoint for this stream. endOfStream)Implements io. Handles an inbound |
| public void | onGoAwayRead(ChannelHandlerContext
the context from the handler where the frame was read. ctx, int the last known stream of the remote endpoint. lastStreamId, long the error code, if abnormal closure. errorCode, ByteBuf application-defined debug data. If this buffer needs to be retained by the
listener they must make a copy. debugData)Implements io. Handles an inbound |
| public void | onHeadersRead(ChannelHandlerContext
the context from the handler where the frame was read. ctx, int the subject stream for the frame. streamId, Http2Headers the received headers. headers, int additional bytes that should be added to obscure the true content size. Must be between 0 and
256 (inclusive). padding, boolean Indicates whether this is the last frame to be sent from the remote endpoint
for this stream. endOfStream)Implements io. Handles an inbound |
| public void | onHeadersRead(ChannelHandlerContext
the context from the handler where the frame was read. ctx, int the subject stream for the frame. streamId, Http2Headers the received headers. headers, int the stream on which this stream depends, or 0 if dependent on the
connection. streamDependency, short the new weight for the stream. weight, boolean whether or not the stream should be the exclusive dependent of its parent. exclusive, int additional bytes that should be added to obscure the true content size. Must be between 0 and
256 (inclusive). padding, boolean Indicates whether this is the last frame to be sent from the remote endpoint
for this stream. endOfStream)Implements io. Handles an inbound |
| public void | onPingAckRead(ChannelHandlerContext
the context from the handler where the frame was read. ctx, long the payload of the frame. data)Implements io. Handles an inbound |
| public void | onPingRead(ChannelHandlerContext
the context from the handler where the frame was read. ctx, long the payload of the frame. data)Implements io. Handles an inbound |
| public void | onPriorityRead(ChannelHandlerContext
the context from the handler where the frame was read. ctx, int the subject stream for the frame. streamId, int the stream on which this stream depends, or 0 if dependent on the
connection. streamDependency, short the new weight for the stream. weight, boolean whether or not the stream should be the exclusive dependent of its parent. exclusive)Implements io. Handles an inbound |
| public void | onPushPromiseRead(ChannelHandlerContext
the context from the handler where the frame was read. ctx, int the stream the frame was sent on. streamId, int the ID of the promised stream. promisedStreamId, Http2Headers the received headers. headers, int additional bytes that should be added to obscure the true content size. Must be between 0 and
256 (inclusive). padding)Implements io. Handles an inbound |
| public void | onRstStreamRead(ChannelHandlerContext
the context from the handler where the frame was read. ctx, int the stream that is terminating. streamId, long the error code identifying the type of failure. errorCode)Implements io. Handles an inbound |
| public void | onSettingsAckRead(ChannelHandlerContext
the context from the handler where the frame was read. ctx)Implements io. Handles an inbound |
| public void | onSettingsRead(ChannelHandlerContext
the context from the handler where the frame was read. ctx, Http2Settings the settings received from the remote endpoint. settings)Implements io. Handles an inbound |
| protected void | onStreamError(ChannelHandlerContext
the channel context ctx, boolean true if the error was caused by an outbound operation.the exception that was caught cause, Http2Exception.the http2ExStreamException that is embedded in the causality chain.Overrides io. Handler for a stream error. |
| public void | onUnknownFrame(ChannelHandlerContext
the context from the handler where the frame was read. ctx, byte the frame type from the HTTP/2 header. frameType, int the stream the frame was sent on. streamId, Http2Flags the flags in the frame header. flags, ByteBuf the payload of the frame. payload)Implements io. Handler for a frame not defined by the HTTP/2 spec. |
| public void | onWindowUpdateRead(ChannelHandlerContext
the context from the handler where the frame was read. ctx, int the stream the frame was sent on. streamId, int the increased number of bytes of the remote endpoint's flow
control window. windowSizeIncrement)Implements io. Handles an inbound |
| public VertxHttp2ConnectionHandler | Returns: thisthe handler to be notified handler)Set an handler to be called when the connection is unset from this handler. |
| public void | |
| public void | userEventTriggered(ChannelHandlerContext ctx, Object evt)
Overrides io. Implements io. Calls |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | writeHeaders(Http2Stream stream, Http2Headers headers, boolean end, int streamDependency, short weight, boolean exclusive, boolean checkFlush, FutureListener<Void> listener)
|
| pack-priv ChannelFuture | |
| pack-priv void | |
| pack-priv Future | |
| pack-priv void | |
| pack-priv ChannelFuture |