Connection instances.
| Modifier and Type | Class and Description |
|---|---|
| public static interface | ClientConnectionFactory.
Wraps another ClientConnectionFactory. |
| public abstract static class | ClientConnectionFactory.
A holder for a list of protocol strings identifying an application protocol
(for example |
| Modifier and Type | Field and Description |
|---|---|
| public static final String |
| Modifier and Type | Method and Description |
|---|---|
| public default Connection | |
| public Connection | newConnection(EndPoint
the endPoint, Map<String, Object> org. to link the newly created connection tothe context data to create the connection context)Returns: a new |
| CLIENT_CONTEXT_KEY | back to summary |
|---|---|
| public static final String CLIENT_CONTEXT_KEY | |
| customize | back to summary |
|---|---|
| public default Connection customize(Connection connection, Map<String, Object> context) | |
| newConnection | back to summary |
|---|---|
public Connection newConnection(EndPoint endPoint, Map<String, Object> context) throws IOException
| |
Wraps another ClientConnectionFactory.
This is typically done by protocols that send "preface" bytes with some metadata before other protocols. The metadata could be, for example, proxying information or authentication information.
| Modifier and Type | Method and Description |
|---|---|
| public ClientConnectionFactory | Returns: the wrapping ClientConnectionFactorythe ClientConnectionFactory to wrap factory)Wraps the given |
| apply | back to summary |
|---|---|
| public ClientConnectionFactory apply(ClientConnectionFactory factory) Wraps the given
| |
A holder for a list of protocol strings identifying an application protocol
(for example ["h2", "h2-17", "h2-16"]) and a ClientConnectionFactory
that creates connections that speak that network protocol.
| Modifier and Type | Field and Description |
|---|---|
| private final ClientConnectionFactory |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ClientConnectionFactory | |
| public abstract List | |
| public boolean | |
| public void |
| factory | back to summary |
|---|---|
| private final ClientConnectionFactory factory | |
| Info | back to summary |
|---|---|
| public Info(ClientConnectionFactory factory) | |
| getClientConnectionFactory | back to summary |
|---|---|
| public ClientConnectionFactory getClientConnectionFactory() | |
| getProtocols | back to summary |
|---|---|
| public abstract List | |
| matches | back to summary |
|---|---|
| public boolean matches(List<String> candidates, boolean secure) Tests whether one of the protocols of this class is also present in the given candidates list. | |
| upgrade | back to summary |
|---|---|
| public void upgrade(EndPoint endPoint, Map<String, Object> context) | |