Package org.eclipse.jetty.io
Interface ClientConnectionFactory
-
- All Known Implementing Classes:
NegotiatingClientConnectionFactory
,SslClientConnectionFactory
public interface ClientConnectionFactory
Factory for client-sideConnection
instances.
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONNECTOR_CONTEXT_KEY
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Connection
customize(Connection connection, Map<String,Object> context)
Connection
newConnection(EndPoint endPoint, Map<String,Object> context)
-
-
-
Field Detail
-
CONNECTOR_CONTEXT_KEY
static final String CONNECTOR_CONTEXT_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
newConnection
Connection newConnection(EndPoint endPoint, Map<String,Object> context) throws IOException
- 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
default Connection customize(Connection connection, Map<String,Object> context)
-
-