Module io.helidon.webserver
Package io.helidon.webserver.http1.spi
Interface Http1UpgradeProvider<T extends ProtocolConfig>
- Type Parameters:
T
- type of the protocol configuration of this upgrade provider
- All Known Implementing Classes:
Http2UpgradeProvider
,TyrusUpgradeProvider
,WsUpgradeProvider
public interface Http1UpgradeProvider<T extends ProtocolConfig>
ServiceLoader
provider interface for HTTP/1.1 connection upgrade provider.
This interface serves as Http1Upgrader
builder
which receives requested configuration from the server configuration when server builder
is running.-
Method Summary
Modifier and TypeMethodDescriptioncreate
(T config, ProtocolConfigs configs) Creates an instance of HTTP/HTTP/1.1 connection upgrader.Type of supported configuration.Provider's type.
-
Method Details
-
protocolType
String protocolType()Provider's type.- Returns:
- protocol type (also the type expected in configuration)
-
protocolConfigType
Type of supported configuration.- Returns:
- protocol config type
-
create
Creates an instance of HTTP/HTTP/1.1 connection upgrader.- Parameters:
config
- configuration of this protocolconfigs
- configuration for possible nested protocols- Returns:
- new server HTTP/1.1 connection upgrade selector
-