- java.lang.Object
-
- org.eclipse.jetty.io.ClientConnectionFactory.Info
-
- Enclosing interface:
- ClientConnectionFactory
public static class ClientConnectionFactory.Info extends java.lang.ObjectA holder for a list of protocol strings identifying a network protocol (for example
["h2", "h2-17", "h2-16"]) and aClientConnectionFactorythat creates connections that speak that network protocol.
-
-
Constructor Summary
Constructors Constructor Description Info(java.util.List<java.lang.String> protocols, ClientConnectionFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientConnectionFactorygetClientConnectionFactory()java.util.List<java.lang.String>getProtocols()booleanmatches(java.util.List<java.lang.String> candidates)Tests whether one of the protocols of this class is also present in the given candidates list.java.lang.StringtoString()
-
-
-
Constructor Detail
-
Info
public Info(java.util.List<java.lang.String> protocols, ClientConnectionFactory factory)
-
-
Method Detail
-
getProtocols
public java.util.List<java.lang.String> getProtocols()
-
getClientConnectionFactory
public ClientConnectionFactory getClientConnectionFactory()
-
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:
toStringin classjava.lang.Object
-
-