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
,HttpClientTransportOverUnixSockets
,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 identifying an application protocol (for example["h2", "h2-17", "h2-16"]
) and aClientConnectionFactory
that creates connections that speak that network protocol. -
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
-