Class ClientConnectionFactory.Info

  • Enclosing interface:
    ClientConnectionFactory

    public static class ClientConnectionFactory.Info
    extends java.lang.Object

    A holder for a list of protocol strings identifying a network protocol (for example ["h2", "h2-17", "h2-16"]) and a ClientConnectionFactory that creates connections that speak that network protocol.

    • Method Detail

      • getProtocols

        public java.util.List<java.lang.String> getProtocols()
      • matches

        public boolean matches​(java.util.List<java.lang.String> candidates)
        Tests whether one of the protocols of this class is also present in the given candidates list.
        Parameters:
        candidates - the candidates to match against
        Returns:
        whether one of the protocols of this class is present in the candidates
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object