| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final Holder | |
| private int | |
| private volatile CloseType | |
| private final AtomicInteger | |
| private final Connection | |
| private final ReentrantLock | |
| private int | |
| pack-priv final Http2BaseFilter | |
| private HeadersDecoder | |
| private HeadersEncoder | |
| private volatile FilterChain | |
| private final Http2Configuration | |
| pack-priv Http2State | |
| private volatile FilterChain | |
| private boolean | |
| private volatile boolean | |
| private volatile boolean | |
| private final boolean | |
| private int | |
| pack-priv int | |
| private volatile int | |
| private volatile int | |
| private final int | |
| private volatile int | |
| private static final Logger | |
| private volatile int | |
| private final ReentrantLock | |
| private final Http2SessionOutputSink | |
| private int | |
| private int | |
| private int | |
| private boolean | |
| private FutureImpl | |
| private final Object | |
| private volatile SSLBaseFilter | |
| private volatile int | |
| private final TreeMap | |
| pack-priv final List | |
| protected final List | |
| private final AtomicInteger |
| Access | Constructor and Description |
|---|---|
| public | Http2Session(final Connection<?> connection, final boolean isServer, final Http2BaseFilter handlerFilter)
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv Http2Stream | acceptStream(final HttpRequestPacket request, final int streamId, final int parentStreamId, final boolean exclusive, final int priority)
|
| public Http2Stream | Returns: a newHttp2Stream for this requestthe request that initiated the upgrade request, final int the stream priority priority, final boolean is more content expected? fin)The method is called to create an |
| pack-priv void | ackConsumedData(final int
size, in bytes, of the data being acknowledged sz)Acknowledge that certain amount of data has been read. |
| pack-priv void | ackConsumedData(final Http2Stream
the stream that data is being ack'd on. stream, final int size, in bytes, of the data being acknowledged sz)Acknowledge that certain amount of data has been read. |
| pack-priv static void | |
| private List | Returns: the resultList with the framesthe stream associated with the headers. streamId, final Buffer a compressedHeaders, final boolean Buffer containing compressed headerswill any additional data be sent after these headers? isEos, final List<Http2Frame> the toList)List to which Http2Frames will be addedEncodes a compressed header buffer as a |
| private List | Returns: the resultList with the framesthe stream associated with these headers streamId, final int the stream of the push promise promisedStreamId, final Buffer the compressed headers to be sent compressedHeaders, final List<Http2Frame> the toList)List to which Http2Frames will be addedEncodes a compressed header buffer as a |
| protected void | |
| private List | Returns: the resultList with the framesthe stream associated with this streamId, final Buffer HeaderBlockFragmentthe compressedHeaders, List<Http2Frame> Buffer containing the compressed headersthe toList)List to which Http2Frames will be addedCompletes the |
| private void | |
| pack-priv void | |
| protected List | Returns: the HTTP2 header frames sequencethe current ctx, final HttpHeader FilterChainContextthe httpHeader, final int HttpHeader to encodethe stream associated with this request streamId, final boolean is this the last frame? isLast, final List<Http2Frame> the target toList, final Map<String, String> capture)List, to which the frames will be serializedEncodes the |
| protected List | Returns: the HTTP2 push promise frames sequencethe current ctx, final HttpRequestPacket FilterChainContextthe httpRequest, final int HttpRequestPacket to encode.the stream associated with this request. streamId, final int the push promise stream ID. promisedStreamId, final List<Http2Frame> the target toList, final Map<String, String> capture)List, to which the frames will be serializedEncodes the |
| protected List | Returns: the HTTP2 header frames sequencethe current ctx, final HttpResponsePacket FilterChainContextthe response, final int HttpResponsePacket whose interim status and headers are to be encodedthe stream associated with this response streamId, final List<Http2Frame> the target toList, final Map<String, String> List, to which the frames will be serializedoptional map collecting the encoded headers for logging capture)Encodes an informational (1xx) interim response, such as |
| protected List | Returns: the HTTP2 header frames sequencethe stream associated with this request streamId, final List<Http2Frame> the target toList, final MimeHeaders List, to which the frames will be serialized.a trailerHeaders, final Map<String, String> capture)MimeHeaders of headers to be transmitted as trailers.Encodes the |
| public static Http2Session | |
| public int | |
| public Connection | |
| public int | |
| public int | |
| public int | |
| pack-priv ReentrantLock | |
| protected int | Returns: the total frame size (including header size), or -1 if the buffer doesn't contain enough bytes to read the sizethe buffer containing the frame data buffer)Returns the total frame size (including header size), or -1 if the buffer doesn't contain enough bytes to read the size. |
| public int | |
| pack-priv HeadersDecoder | |
| pack-priv HeadersEncoder | |
| pack-priv FilterChain | |
| pack-priv Http2State | |
| public int | |
| public int | getLocalMaxConcurrentStreams()
Returns: the maximum number of concurrent streams allowed for this session by our side. |
| public final int | |
| public int | |
| public int | |
| public MemoryManager | |
| public ReentrantLock | Returns: theReentrantLockThe |
| public int | |
| protected Http2SessionOutputSink | |
| public int | getPeerMaxConcurrentStreams()
Returns: the maximum number of concurrent streams allowed for this session by peer. |
| public int | |
| public int | |
| protected int | |
| protected int | |
| protected int | |
| public Http2Stream | |
| private void | |
| private boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| public boolean | |
| pack-priv boolean | |
| public boolean | |
| public boolean | |
| protected Http2SessionOutputSink | |
| protected Http2Stream | newStream(final HttpRequestPacket request, final int streamId, final int refStreamId, final boolean exclusive, final int priority)
|
| protected Http2Stream | |
| protected void | |
| public Http2Stream | Returns: a newHttp2Stream for this requestthe request that initiated the stream request, final int the ID of this new stream streamId, final int the parent stream parentStreamId, final boolean exclusive, final int the priority of this stream priority)Method is not thread-safe, it is expected that it will be called within |
| public Http2Stream | Returns: a newHttp2Stream for this requestthe request that initiated the upgrade request, final int the priority of the stream priority)The method is called on the client side, when the server confirms HTTP/1.1 -> HTTP/2.0 upgrade with '101' response. |
| public Http2Frame | |
| protected SettingsFrame. | |
| private void | |
| pack-priv void | |
| private void | |
| protected void | |
| private void | |
| pack-priv void | |
| private void | sendMessageUpstream(final Http2Stream stream, final HttpPacket message, final FilterChainContext upstreamContext)
|
| pack-priv void | |
| pack-priv void | |
| protected void | |
| protected void | |
| pack-priv void | |
| private GoAwayFrame | |
| public void | |
| public void | setLocalMaxConcurrentStreams(int
max number of streams locally allowed localMaxConcurrentStreams)Sets the default maximum number of concurrent streams allowed for this session by our side. |
| public void | |
| public void | setMaxHeaderListSize(int
size, in bytes, of the header list. maxHeaderListSize)Set the maximum size, in bytes, of the header list. |
| pack-priv void | setPeerMaxConcurrentStreams(int peerMaxConcurrentStreams)
Sets the default maximum number of concurrent streams allowed for this session by peer. |
| protected void | setPeerMaxFramePayloadSize(final int
max payload size accepted by the peer. peerMaxFramePayloadSize)Sets the max payload size to be accepted by the peer. |
| pack-priv void | |
| public void | setPushEnabled(final boolean
flag toggling push support. pushEnabled)Configure whether or not push is enabled on this |
| pack-priv void | setupFilterChains(final FilterChainContext
the current context, final boolean FilterChainContextflag denoting the direction of the chain isUpStream)Initializes HTTP2 communication (if not initialized before) by forming HTTP2 connection and stream
|
| pack-priv void | |
| pack-priv FutureImpl |