java.lang.Object
io.helidon.webserver.http2.Http2ServerStream
- All Implemented Interfaces:
Http2Stream,Runnable
Server HTTP/2 stream implementation.
-
Constructor Summary
ConstructorsConstructorDescriptionHttp2ServerStream(ConnectionContext ctx, HttpRouting routing, Http2Config http2Config, List<Http2SubProtocolSelector> subProviders, int streamId, Http2Settings serverSettings, Http2Settings clientSettings, Http2StreamWriter writer, ConnectionFlowControl connectionFlowControl) A new HTTP/2 server stream. -
Method Summary
Modifier and TypeMethodDescriptionvoidCheck if data can be received on this stream.voidCheck if headers can be received on this stream.voidCheck this stream is not closed.voiddata(Http2FrameHeader header, io.helidon.common.buffers.BufferData data, boolean endOfStream) voidheaders(Http2Headers headers, boolean endOfStream) voidpriority(Http2Priority http2Priority) voidrstStream(Http2RstStream rstStream) voidrun()intstreamId()voidwindowUpdate(Http2WindowUpdate windowUpdate)
-
Constructor Details
-
Http2ServerStream
public Http2ServerStream(ConnectionContext ctx, HttpRouting routing, Http2Config http2Config, List<Http2SubProtocolSelector> subProviders, int streamId, Http2Settings serverSettings, Http2Settings clientSettings, Http2StreamWriter writer, ConnectionFlowControl connectionFlowControl) A new HTTP/2 server stream.- Parameters:
ctx- connection contextrouting- HTTP routinghttp2Config- HTTP/2 configurationsubProviders- HTTP/2 sub protocol selectorsstreamId- stream idserverSettings- server settingsclientSettings- client settingswriter- writerconnectionFlowControl- connection flow control
-
-
Method Details
-
checkNotClosed
Check this stream is not closed. This method is called from connection thread.- Throws:
Http2Exception- in case this stream is closed
-
checkDataReceivable
Check if data can be received on this stream. This method is called from connection thread.- Throws:
Http2Exception- in case data cannot be received
-
checkHeadersReceivable
Check if headers can be received on this stream. This method is called from connection thread.- Throws:
Http2Exception- in case headers cannot be received.
-
rstStream
- Specified by:
rstStreamin interfaceHttp2Stream
-
windowUpdate
- Specified by:
windowUpdatein interfaceHttp2Stream
-
headers
- Specified by:
headersin interfaceHttp2Stream
-
data
public void data(Http2FrameHeader header, io.helidon.common.buffers.BufferData data, boolean endOfStream) - Specified by:
datain interfaceHttp2Stream
-
priority
- Specified by:
priorityin interfaceHttp2Stream
-
streamId
public int streamId()- Specified by:
streamIdin interfaceHttp2Stream
-
streamState
- Specified by:
streamStatein interfaceHttp2Stream
-
flowControl
- Specified by:
flowControlin interfaceHttp2Stream
-
run
public void run()
-