HttpClientTransport represents what transport implementations should provide
in order to plug-in a different transport for HttpClient.
While the HttpClient APIs define the HTTP semantic (request, response, headers, etc.)
how an HTTP exchange is carried over the network depends on implementations of this class.
The default implementation uses the HTTP protocol to carry over the network the HTTP exchange, but the HTTP exchange may also be carried using the FCGI protocol, the HTTP/2 protocol or, in future, other protocols.
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final String |
| Modifier and Type | Method and Description |
|---|---|
| public void | connect(InetSocketAddress
the address to connect to address, Map<String, Object> the context information to establish the connection context)
Deprecated
use
connect(SocketAddress, Map) instead.
Establishes a physical connection to the given |
| public default void | connect(SocketAddress
the address to connect to address, Map<String, Object> the context information to establish the connection context)Establishes a physical connection to the given |
| public ConnectionPool. | |
| public Destination | Returns: a new, transport-specific,HttpDestination objectthe destination origin origin)Creates a new, transport-specific, |
| public Origin | |
| public void | setConnectionPoolFactory(ConnectionPool.
the factory for ConnectionPool instances factorySet the factory for ConnectionPool instances. |
| public void | setHttpClient(HttpClient
the client)HttpClient that uses this transport.Sets the |
| HTTP_CONNECTION_PROMISE_CONTEXT_KEY | back to summary |
|---|---|
| public static final String HTTP_CONNECTION_PROMISE_CONTEXT_KEY | |
| HTTP_DESTINATION_CONTEXT_KEY | back to summary |
|---|---|
| public static final String HTTP_DESTINATION_CONTEXT_KEY | |
| connect | back to summary |
|---|---|
| public void connect(InetSocketAddress address, Map<String, Object> context)
Deprecated use Establishes a physical connection to the given
| |
| connect | back to summary |
|---|---|
| public default void connect(SocketAddress address, Map<String, Object> context) Establishes a physical connection to the given
| |
| getConnectionPoolFactory | back to summary |
|---|---|
public ConnectionPool.
| |
| newDestination | back to summary |
|---|---|
| public Destination newDestination(Origin origin) Creates a new, transport-specific,
| |
| newOrigin | back to summary |
|---|---|
| public Origin newOrigin(Request request) Creates a new Origin with the given request. | |
| setConnectionPoolFactory | back to summary |
|---|---|
| public void setConnectionPoolFactory(ConnectionPool. Set the factory for ConnectionPool instances.
| |
| setHttpClient | back to summary |
|---|---|
| public void setHttpClient(HttpClient client) Sets the
This is needed because of a chicken-egg problem: in order to create the
| |