Package org.eclipse.jetty.io
Interface ClientConnectionFactory
- All Known Subinterfaces:
HttpClientTransport
- All Known Implementing Classes:
AbstractConnectorHttpClientTransport
,AbstractHttpClientTransport
,ALPNClientConnectionFactory
,ClientConnectionFactoryOverHTTP2
,ClientConnectionFactoryOverHTTP3
,HTTP2ClientConnectionFactory
,HTTP3ClientConnectionFactory
,HttpClientConnectionFactory
,HttpClientTransportDynamic
,HttpClientTransportOverFCGI
,HttpClientTransportOverHTTP
,HttpClientTransportOverHTTP2
,HttpClientTransportOverHTTP3
,NegotiatingClientConnectionFactory
,ProxyProtocolClientConnectionFactory
,ProxyProtocolClientConnectionFactory.V1
,ProxyProtocolClientConnectionFactory.V2
,Socks4Proxy.Socks4ProxyClientConnectionFactory
,SslClientConnectionFactory
public interface ClientConnectionFactory
Factory for client-side
Connection
instances.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Wraps another ClientConnectionFactory.static class
A holder for a list of protocol strings identifiers (for example["h2", "h2-17", "h2-16"]
) and aClientConnectionFactory
that creates connections that speak an application protocol such as HTTP. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault Connection
customize
(Connection connection, Map<String, Object> context) newConnection
(EndPoint endPoint, Map<String, Object> context)
-
Field Details
-
CLIENT_CONTEXT_KEY
- See Also:
-
-
Method Details
-
newConnection
- Parameters:
endPoint
- theEndPoint
to link the newly created connection tocontext
- the context data to create the connection- Returns:
- a new
Connection
- Throws:
IOException
- if the connection cannot be created
-
customize
-