Package org.eclipse.jetty.io
Interface ClientConnectionFactory
-
- All Known Subinterfaces:
HttpClientTransport
- All Known Implementing Classes:
AbstractConnectorHttpClientTransport
,AbstractHttpClientTransport
,ALPNClientConnectionFactory
,HTTP2ClientConnectionFactory
,HttpClientTransportOverFCGI
,HttpClientTransportOverHTTP
,HttpClientTransportOverHTTP2
,HttpClientTransportOverUnixSockets
,NegotiatingClientConnectionFactory
,ProxyProtocolClientConnectionFactory
,ProxyProtocolClientConnectionFactory.V1
,ProxyProtocolClientConnectionFactory.V2
,Socks4Proxy.Socks4ProxyClientConnectionFactory
,SslClientConnectionFactory
public interface ClientConnectionFactory
Factory for client-sideConnection
instances.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ClientConnectionFactory.Decorator
Wraps another ClientConnectionFactory.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CONNECTOR_CONTEXT_KEY
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Connection
customize(Connection connection, java.util.Map<java.lang.String,java.lang.Object> context)
Connection
newConnection(EndPoint endPoint, java.util.Map<java.lang.String,java.lang.Object> context)
-
-
-
Field Detail
-
CONNECTOR_CONTEXT_KEY
static final java.lang.String CONNECTOR_CONTEXT_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
newConnection
Connection newConnection(EndPoint endPoint, java.util.Map<java.lang.String,java.lang.Object> context) throws java.io.IOException
- Parameters:
endPoint
- theEndPoint
to link the newly created connection tocontext
- the context data to create the connection- Returns:
- a new
Connection
- Throws:
java.io.IOException
- if the connection cannot be created
-
customize
default Connection customize(Connection connection, java.util.Map<java.lang.String,java.lang.Object> context)
-
-