java.lang.Object
io.helidon.webserver.grpc.GrpcProtocolSelector
- All Implemented Interfaces:
Http2SubProtocolSelector
Sub-protocol selector for HTTP/2.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.webserver.http2.spi.Http2SubProtocolSelector
Http2SubProtocolSelector.SubProtocolHandler
-
Field Summary
Fields inherited from interface io.helidon.webserver.http2.spi.Http2SubProtocolSelector
NOT_SUPPORTED
-
Method Summary
Modifier and TypeMethodDescriptionstatic GrpcProtocolSelector
create()
Create a new grpc protocol selector (default).subProtocol
(ConnectionContext ctx, HttpPrologue prologue, Http2Headers headers, Http2StreamWriter streamWriter, int streamId, Http2Settings serverSettings, Http2Settings clientSettings, StreamFlowControl flowControl, Http2StreamState currentStreamState, Router router) Check if this is a sub-protocol request and return appropriate result.
-
Method Details
-
create
Create a new grpc protocol selector (default).- Returns:
- a new default grpc protocol selector for HTTP/2
-
subProtocol
public SubProtocolResult subProtocol(ConnectionContext ctx, HttpPrologue prologue, Http2Headers headers, Http2StreamWriter streamWriter, int streamId, Http2Settings serverSettings, Http2Settings clientSettings, StreamFlowControl flowControl, Http2StreamState currentStreamState, Router router) Description copied from interface:Http2SubProtocolSelector
Check if this is a sub-protocol request and return appropriate result.- Specified by:
subProtocol
in interfaceHttp2SubProtocolSelector
- Parameters:
ctx
- connection contextprologue
- received prologueheaders
- received headersstreamWriter
- stream writerstreamId
- stream idserverSettings
- server settingsclientSettings
- client settingsflowControl
- stream flow controlcurrentStreamState
- current stream staterouter
- router- Returns:
- sub-protocol result
-