Class ProtocolConfigs

java.lang.Object
io.helidon.webserver.ProtocolConfigs

public class ProtocolConfigs extends Object
Protocol configuration to obtain explicitly configured details for the current socket.
  • Method Details

    • create

      public static ProtocolConfigs create(List<ProtocolConfig> protocolConfigs)
      Create new protocol configuration handler.
      Parameters:
      protocolConfigs - all available protocol configurations.
      Returns:
      protocol configuration handler
    • config

      public <T extends ProtocolConfig> List<T> config(String protocolType, Class<T> protocolConfigType)
      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