Module io.helidon.webserver.http2
Package io.helidon.webserver.http2.spi
Interface Http2SubProtocolSelector.SubProtocolHandler
- Enclosing interface:
 Http2SubProtocolSelector
public static interface Http2SubProtocolSelector.SubProtocolHandler
Handler of a sub-protocol.
- 
Method Summary
Modifier and TypeMethodDescriptionvoiddata(Http2FrameHeader header, BufferData data) Data was received.voidinit()Called once the sub-protocol handler is available.voidrstStream(Http2RstStream rstStream) RST stream was received.Current stream state.voidwindowUpdate(Http2WindowUpdate update) Window update was received. 
- 
Method Details
- 
init
void init()Called once the sub-protocol handler is available. Always dispatched on the HTTP/2 stream thread. - 
streamState
Http2StreamState streamState()Current stream state.- Returns:
 - stream state
 
 - 
rstStream
RST stream was received. Note that this method will be dispatched on the HTTP/2 connection thread, not the stream thread.- Parameters:
 rstStream- RST stream frame
 - 
windowUpdate
Window update was received. Note that this method will be dispatched on the HTTP/2 connection thread, not the stream thread.- Parameters:
 update- window update frame
 - 
data
Data was received. Always dispatched on the HTTP/2 stream thread. The data may be empty. Check theHttp2FrameHeader.flags(io.helidon.http.http2.Http2FrameTypes)if this isHttp2Flag.END_OF_STREAMto identify if this is the last data incoming.- Parameters:
 header- frame headerdata- frame data
 
 -