Module io.helidon.webserver.http2
Package io.helidon.webserver.http2.spi
Interface Http2SubProtocolProvider<T extends ProtocolConfig>
- Type Parameters:
T
- type of the protocol configuration used by the provider
- All Known Implementing Classes:
GrpcProtocolProvider
public interface Http2SubProtocolProvider<T extends ProtocolConfig>
ServiceLoader
provider interface for HTTP/2 sub-protocols.-
Method Summary
Modifier and TypeMethodDescriptioncreate
(T config, ProtocolConfigs configs) Creates an instance of HTTP/2 sub-protocol selector.Type of supported configuration.Provider's type, also expected as the configuration node name.
-
Method Details
-
protocolType
String protocolType()Provider's type, also expected as the configuration node name.- Returns:
- type of this provider, such as
grpc
-
protocolConfigType
Type of supported configuration.- Returns:
- protocol config type
-
create
Creates an instance of HTTP/2 sub-protocol selector.- Parameters:
config
- configuration of this protocolconfigs
- configuration for possible nested protocols- Returns:
- new HTTP/2 sub-protocol selector
-