Interface HttpClientTransport
-
- All Superinterfaces:
ClientConnectionFactory
- All Known Implementing Classes:
AbstractConnectorHttpClientTransport
,AbstractHttpClientTransport
,HttpClientTransportOverHTTP
@Deprecated(since="2021-05-27") public interface HttpClientTransport extends ClientConnectionFactory
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.HttpClientTransport
represents what transport implementations should provide in order to plug-in a different transport forHttpClient
.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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.io.ClientConnectionFactory
ClientConnectionFactory.Decorator
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
HTTP_CONNECTION_PROMISE_CONTEXT_KEY
Deprecated.static java.lang.String
HTTP_DESTINATION_CONTEXT_KEY
Deprecated.-
Fields inherited from interface org.eclipse.jetty.io.ClientConnectionFactory
CONNECTOR_CONTEXT_KEY
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
connect(java.net.InetSocketAddress address, java.util.Map<java.lang.String,java.lang.Object> context)
Deprecated.Establishes a physical connection to the givenaddress
.ConnectionPool.Factory
getConnectionPoolFactory()
Deprecated.HttpDestination
newHttpDestination(Origin origin)
Deprecated.Creates a new, transport-specific,HttpDestination
object.void
setConnectionPoolFactory(ConnectionPool.Factory factory)
Deprecated.void
setHttpClient(HttpClient client)
Deprecated.Sets theHttpClient
instance on this transport.-
Methods inherited from interface org.eclipse.jetty.io.ClientConnectionFactory
customize, newConnection
-
-
-
-
Field Detail
-
HTTP_DESTINATION_CONTEXT_KEY
static final java.lang.String HTTP_DESTINATION_CONTEXT_KEY
Deprecated.- See Also:
- Constant Field Values
-
HTTP_CONNECTION_PROMISE_CONTEXT_KEY
static final java.lang.String HTTP_CONNECTION_PROMISE_CONTEXT_KEY
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
setHttpClient
void setHttpClient(HttpClient client)
Deprecated.Sets theHttpClient
instance on this transport.This is needed because of a chicken-egg problem: in order to create the
HttpClient
aHttpClientTransport
is needed, that therefore cannot have a reference yet to theHttpClient
.- Parameters:
client
- theHttpClient
that uses this transport.
-
newHttpDestination
HttpDestination newHttpDestination(Origin origin)
Deprecated.Creates a new, transport-specific,HttpDestination
object.HttpDestination
controls the destination-connection cardinality: protocols like HTTP have 1-N cardinality, while multiplexed protocols like HTTP/2 have a 1-1 cardinality.- Parameters:
origin
- the destination origin- Returns:
- a new, transport-specific,
HttpDestination
object
-
connect
void connect(java.net.InetSocketAddress address, java.util.Map<java.lang.String,java.lang.Object> context)
Deprecated.Establishes a physical connection to the givenaddress
.- Parameters:
address
- the address to connect tocontext
- the context information to establish the connection
-
getConnectionPoolFactory
ConnectionPool.Factory getConnectionPoolFactory()
Deprecated.- Returns:
- the factory for ConnectionPool instances
-
setConnectionPoolFactory
void setConnectionPoolFactory(ConnectionPool.Factory factory)
Deprecated.- Parameters:
factory
- the factory for ConnectionPool instances
-
-