Interface Http2SubProtocolSelector


public interface Http2SubProtocolSelector
A selector of HTTP/2 sub-protocols.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Handler of a sub-protocol.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final SubProtocolResult
    Not supported sub-protocol result.
  • Method Summary

    Modifier and Type
    Method
    Description
    subProtocol(ConnectionContext ctx, io.helidon.http.HttpPrologue prologue, io.helidon.http.http2.Http2Headers headers, io.helidon.http.http2.Http2StreamWriter streamWriter, int streamId, io.helidon.http.http2.Http2Settings serverSettings, io.helidon.http.http2.Http2Settings clientSettings, io.helidon.http.http2.StreamFlowControl streamFlowControl, io.helidon.http.http2.Http2StreamState currentStreamState, Router router)
    Check if this is a sub-protocol request and return appropriate result.
  • Field Details

    • NOT_SUPPORTED

      static final SubProtocolResult NOT_SUPPORTED
      Not supported sub-protocol result.
  • Method Details

    • subProtocol

      SubProtocolResult subProtocol(ConnectionContext ctx, io.helidon.http.HttpPrologue prologue, io.helidon.http.http2.Http2Headers headers, io.helidon.http.http2.Http2StreamWriter streamWriter, int streamId, io.helidon.http.http2.Http2Settings serverSettings, io.helidon.http.http2.Http2Settings clientSettings, io.helidon.http.http2.StreamFlowControl streamFlowControl, io.helidon.http.http2.Http2StreamState currentStreamState, Router router)
      Check if this is a sub-protocol request and return appropriate result.
      Parameters:
      ctx - connection context
      prologue - received prologue
      headers - received headers
      streamWriter - stream writer
      streamId - stream id
      serverSettings - server settings
      clientSettings - client settings
      streamFlowControl - stream flow control
      currentStreamState - current stream state
      router - router
      Returns:
      sub-protocol result