Interface Http2SubProtocolSelector.SubProtocolHandler

Enclosing interface:
Http2SubProtocolSelector

public static interface Http2SubProtocolSelector.SubProtocolHandler
Handler of a sub-protocol.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    data(io.helidon.http.http2.Http2FrameHeader header, io.helidon.common.buffers.BufferData data)
    Data was received.
    void
    Called once the sub-protocol handler is available.
    void
    rstStream(io.helidon.http.http2.Http2RstStream rstStream)
    RST stream was received.
    io.helidon.http.http2.Http2StreamState
    Current stream state.
    void
    windowUpdate(io.helidon.http.http2.Http2WindowUpdate update)
    Window update was received.
  • Method Details

    • init

      void init()
      Called once the sub-protocol handler is available.
    • streamState

      io.helidon.http.http2.Http2StreamState streamState()
      Current stream state.
      Returns:
      stream state
    • rstStream

      void rstStream(io.helidon.http.http2.Http2RstStream rstStream)
      RST stream was received.
      Parameters:
      rstStream - RST stream frame
    • windowUpdate

      void windowUpdate(io.helidon.http.http2.Http2WindowUpdate update)
      Window update was received.
      Parameters:
      update - window update frame
    • data

      void data(io.helidon.http.http2.Http2FrameHeader header, io.helidon.common.buffers.BufferData data)
      Data was received. The data may be empty. Check the Http2FrameHeader.flags(io.helidon.http.http2.Http2FrameTypes) if this is Http2Flag.END_OF_STREAM to identify if this is the last data incoming.
      Parameters:
      header - frame header
      data - frame data