java.lang.Object
io.helidon.nima.http2.webserver.Http2Stream
All Implemented Interfaces:
Http2Stream, Runnable

public class Http2Stream extends Object implements Runnable, Http2Stream
Server HTTP/2 stream implementation.
  • Constructor Details

  • Method Details

    • checkNotClosed

      public void checkNotClosed() throws Http2Exception
      Check this stream is not closed. This method is called from connection thread.
      Throws:
      Http2Exception - in case this stream is closed
    • checkDataReceivable

      public void checkDataReceivable() throws Http2Exception
      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

      public void checkHeadersReceivable() throws Http2Exception
      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

      public void rstStream(Http2RstStream rstStream)
      Description copied from interface: Http2Stream
      Close the stream.
      Specified by:
      rstStream in interface Http2Stream
      Parameters:
      rstStream - rst stream frame
    • windowUpdate

      public void windowUpdate(Http2WindowUpdate windowUpdate)
      Description copied from interface: Http2Stream
      Flow control window update.
      Specified by:
      windowUpdate in interface Http2Stream
      Parameters:
      windowUpdate - window update frame
    • headers

      public void headers(Http2Headers headers, boolean endOfStream)
      Description copied from interface: Http2Stream
      Headers received.
      Specified by:
      headers in interface Http2Stream
      Parameters:
      headers - request headers
      endOfStream - whether these headers are the last data that would be received
    • data

      public void data(Http2FrameHeader header, BufferData data)
      Description copied from interface: Http2Stream
      Data frame.
      Specified by:
      data in interface Http2Stream
      Parameters:
      header - frame header
      data - frame data
    • priority

      public void priority(Http2Priority http2Priority)
      Description copied from interface: Http2Stream
      Priority.
      Specified by:
      priority in interface Http2Stream
      Parameters:
      http2Priority - priority frame
    • streamId

      public int streamId()
      Description copied from interface: Http2Stream
      Stream ID.
      Specified by:
      streamId in interface Http2Stream
      Returns:
      id of this stream
    • streamState

      public Http2StreamState streamState()
      Description copied from interface: Http2Stream
      State of this stream.
      Specified by:
      streamState in interface Http2Stream
      Returns:
      state
    • flowControl

      public StreamFlowControl flowControl()
      Description copied from interface: Http2Stream
      Outbound flow control of this stream.
      Specified by:
      flowControl in interface Http2Stream
      Returns:
      flow control
    • run

      public void run()
      Specified by:
      run in interface Runnable