java.lang.Object
io.helidon.webserver.ProtocolConfigs
Protocol configuration to obtain explicitly configured details for the current socket.
-
Method Summary
Modifier and TypeMethodDescription<T extends ProtocolConfig>
List<T> Get a protocol configuration if defined.static ProtocolConfigs
create
(List<ProtocolConfig> protocolConfigs) Create new protocol configuration handler.
-
Method Details
-
create
Create new protocol configuration handler.- Parameters:
protocolConfigs
- all available protocol configurations.- Returns:
- protocol configuration handler
-
config
Get a protocol configuration if defined.- Type Parameters:
T
- type of the expected protocol configuration- Parameters:
protocolType
- type of the protocol, to distinguish between protocols (two protocols may use the same configuration class)protocolConfigType
- type of the expected configuration (same protocol type may use different configuration class)- Returns:
- protocol configuration(s) to use, if empty, this protocol should not be used
-