| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private static class | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| public static final HttpString | |
| public static final String | |
| pack-priv static final int | |
| private Http2HeadersParser | |
| private final Map | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| private final HpackDecoder | |
| public static final int | |
| public static final int | |
| private final HpackEncoder | |
| private final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| private final Object | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| private Http2FrameHeaderParser | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| private final int | |
| private volatile int | initialSendWindowSize
The initial window size for newly created channels, guarded by |
| private boolean | |
| private boolean | initialSettingsSent
We send the settings frame lazily, which is basically a big hack to work around broken IE support for push (it dies if you send a settings frame with push enabled). |
| private int | |
| private boolean | |
| private int | |
| private long | |
| public static final int | |
| private final int | |
| private final int | |
| private final int | |
| private final int | |
| public static final HttpString | |
| private final Random | |
| private final ParseTimeoutUpdater | |
| public static final HttpString | |
| private boolean | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final byte[] | |
| private int | |
| private final String | |
| private volatile boolean | |
| private volatile int | |
| private static final AtomicIntegerFieldUpdater | |
| private int | |
| private final int | |
| private final int | |
| private volatile int | receiveWindowSize
How much data we have told the remote endpoint we are prepared to accept, guarded by |
| private final long | |
| public static final HttpString | |
| private volatile int | |
| private static final AtomicIntegerFieldUpdater | |
| private volatile int | |
| private volatile int | |
| private volatile long | sendWindowSize
How much data we can send to the remote endpoint, at the connection level, guarded by |
| private final Http2Channel. | |
| pack-priv static final int | |
| public static final HttpString | |
| private static final int | |
| private int | |
| private boolean | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | Http2Channel(StreamConnection connectedStreamChannel, String protocol, ByteBufferPool bufferPool, PooledByteBuffer data, boolean clientSide, boolean fromUpgrade, OptionMap settings)
|
| public | Http2Channel(StreamConnection connectedStreamChannel, String protocol, ByteBufferPool bufferPool, PooledByteBuffer data, boolean clientSide, boolean fromUpgrade, boolean prefaceRequired, OptionMap settings)
|
| public | Http2Channel(StreamConnection connectedStreamChannel, String protocol, ByteBufferPool bufferPool, PooledByteBuffer data, boolean clientSide, boolean fromUpgrade, boolean prefaceRequired, ByteBuffer initialOtherSideSettings, OptionMap settings)
|
| Modifier and Type | Method and Description |
|---|---|
| public synchronized boolean | Returns: true if pushedStreamId can be added, false if invalidThe pushed stream returned by the server pushedStreamId)Adds a received pushed stream into the current streams for a client. |
| public <T> void | addToAttachmentList(AttachmentKey<AttachmentList<T>>
the attachment key key, T the value to add value)Implements io. Add a value to a list-typed attachment key. |
| protected void | closeSubChannels()
Implements abstract io. Method that is called when the channel is being forcibly closed, and all sub stream sink/source channels should also be forcibly closed. |
| private void | |
| protected AbstractHttp2StreamSourceChannel | createChannel(FrameHeaderData
The header data, as returned by frameHeaderData, PooledByteBuffer parseFrame(java.Any additional data for the frame that has already been read. This may not be the complete frame contents frameData)Implements abstract io. Method that creates the actual stream source channel implementation that is in use. |
| protected AbstractHttp2StreamSourceChannel | |
| public synchronized Http2HeadersStreamSinkChannel | createInitialUpgradeResponseStream()
Creates a response stream to respond to the initial HTTP upgrade |
| public synchronized Http2HeadersStreamSinkChannel | |
| private void | |
| private void | |
| public <T> T | getAttachment(AttachmentKey<T>
the attachment key key)Implements io. Get an attachment value. |
| public <T> List | getAttachmentList(AttachmentKey<? extends List<T>>
the attachment key key)Implements io. Gets a list attachment value. |
| pack-priv HpackDecoder | |
| pack-priv HpackEncoder | |
| public int | |
| pack-priv Http2StreamSourceChannel | |
| public int | |
| public int | |
| private synchronized int | |
| private synchronized int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| public String | |
| public String | |
| public int | |
| public int | |
| protected Collection | getReceivers()
Implements abstract io.
|
| public int | |
| public int | |
| public SSLSession | |
| pack-priv int | Returns: The actual amount of bytes the sender can sendThe amount of bytes the sender is trying to send bytesToGrab)Try and decrement the send window by the given amount of bytes. |
| protected void | handleBrokenSinkChannel(Throwable e)
Implements abstract io. Method that is invoked when then write side of a channel is broken. |
| protected void | handleBrokenSourceChannel(Throwable e)
Implements abstract io. Method that is invoked when the read side of the channel is broken. |
| private Http2Channel. | |
| public void | |
| public boolean | |
| private synchronized boolean | |
| protected boolean | isLastFrameReceived()
Implements abstract io. Returns true if the protocol specific final frame has been received. |
| protected boolean | isLastFrameSent()
Implements abstract io.
|
| public boolean | |
| public boolean | |
| public boolean | |
| protected void | lastDataRead()
Overrides io. Method than is invoked when read() returns -1. |
| pack-priv synchronized void | |
| protected FrameHeaderData | parseFrame(ByteBuffer
The data that has been read from the channel data)Implements abstract io. Attempts to parse an incoming frame header from the data in the buffer. |
| private Http2FrameHeaderParser | |
| public <T> T | putAttachment(AttachmentKey<T>
the attachment key key, T the new value value)Implements io. Set an attachment value. |
| pack-priv void | |
| public <T> T | removeAttachment(AttachmentKey<T>
the attachment key key)Implements io. Remove an attachment, returning its previous value. |
| pack-priv void | |
| pack-priv Http2StreamSourceChannel | |
| public void | |
| public void | sendGoAway(int status, final ChannelExceptionHandler<AbstractHttp2StreamSinkChannel> exceptionHandler)
|
| public void | |
| public void | sendPing(byte[] data, final ChannelExceptionHandler<AbstractHttp2StreamSinkChannel> exceptionHandler)
|
| pack-priv void | sendPing(byte[] data, final ChannelExceptionHandler<AbstractHttp2StreamSinkChannel> exceptionHandler, boolean ack)
|
| private void | |
| public synchronized Http2HeadersStreamSinkChannel | |
| public void | |
| private void | |
| private void | |
| public void | |
| public void | |
| public void | |
| pack-priv boolean | |
| private synchronized void | updateStreamIdsCountersInHeaders(int
The received streamId for the client or the server streamNo)Updates the lastGoodStreamId (last request ID to send in goaway frames), and lastAssignedStreamOtherSide (the last received streamId from the other side to check if it's idle). |