Package org.eclipse.jetty.client
The core class is HttpClient
, which acts as a central configuration object (for example
for idle timeouts
, max connections per destination
, etc.) and as a factory for Request
objects.
The HTTP protocol is based on the request/response paradigm, a unit that in this implementation is called
exchange and is represented by HttpExchange
.
An initial request may trigger a sequence of exchanges with one or more servers, called a conversation
and represented by HttpConversation
. A typical example of a conversation is a redirect, where
upon a request for a resource URI, the server replies with a redirect (for example with the 303 status code)
to another URI. This conversation is made of a first exchange made of the original request and its 303 response,
and of a second exchange made of the request for the new URI and its 200 response.
HttpClient
holds a number of destinations
, which in turn hold a number of
pooled connections
.
When a request is sent, its exchange is associated to a connection, either taken from an idle queue or created
anew, and when both the request and response are completed, the exchange is disassociated from the connection.
Conversations may span multiple connections on different destinations, and therefore are maintained at the
HttpClient
level.
Applications may decide to send the request and wait for the response in a blocking way, using
Request.send()
.
Alternatively, application may ask to be notified of response events asynchronously, using
Request.send(org.eclipse.jetty.client.api.Response.CompleteListener)
.
-
Interface Summary Interface Description AsyncContentProvider Deprecated. The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.AsyncContentProvider.Listener Deprecated. The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.ConnectionPool Deprecated. The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.ConnectionPool.Factory Deprecated. The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.ConnectionPool.Multiplexable Deprecated. The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.ContentDecoder Deprecated. The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.HttpClientTransport Deprecated. The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.ProtocolHandler Deprecated. The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.Synchronizable Deprecated. The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported. -
Class Summary Class Description AbstractConnectionPool Deprecated. AbstractConnectorHttpClientTransport Deprecated. AbstractHttpClientTransport Deprecated. AuthenticationProtocolHandler Deprecated. ContentDecoder.Factory Deprecated. The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.ContinueProtocolHandler Deprecated. The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.DuplexConnectionPool Deprecated. GZIPContentDecoder Deprecated. The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.GZIPContentDecoder.Factory Deprecated. The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.HttpAuthenticationStore Deprecated. HttpChannel Deprecated. HttpClient Deprecated. The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.HttpConnection Deprecated. HttpContent Deprecated. The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.HttpContentResponse Deprecated. HttpConversation Deprecated. HttpDestination Deprecated. HttpExchange Deprecated. HttpProxy Deprecated. HttpReceiver Deprecated. The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.HttpRedirector Deprecated. The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.HttpRequest Deprecated. HttpResponse Deprecated. HttpSender Deprecated. The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.LeakTrackingConnectionPool Deprecated. MultiplexConnectionPool Deprecated. MultiplexHttpDestination Deprecated. Origin Deprecated. Origin.Address Deprecated. PoolingHttpDestination Deprecated. ProtocolHandlers Deprecated. The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.ProxyAuthenticationProtocolHandler Deprecated. The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.ProxyConfiguration Deprecated. The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.ProxyConfiguration.Proxy Deprecated. ProxyProtocolClientConnectionFactory Deprecated. The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.ProxyProtocolClientConnectionFactory.V1 Deprecated. The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.ProxyProtocolClientConnectionFactory.V1.Tag Deprecated. The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.ProxyProtocolClientConnectionFactory.V2 Deprecated. The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.ProxyProtocolClientConnectionFactory.V2.Tag Deprecated. The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.ProxyProtocolClientConnectionFactory.V2.Tag.TLV Deprecated. RandomConnectionPool Deprecated. The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.RedirectProtocolHandler Deprecated. The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.RequestNotifier Deprecated. ResponseNotifier Deprecated. RoundRobinConnectionPool Deprecated. The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.SendFailure Deprecated. Socks4Proxy Deprecated. Socks4Proxy.Socks4ProxyClientConnectionFactory Deprecated. TimeoutCompleteListener Deprecated. Do not use it, useCyclicTimeouts
instead.ValidatingConnectionPool Deprecated. The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.WWWAuthenticationProtocolHandler Deprecated. The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported. -
Enum Summary Enum Description ProxyProtocolClientConnectionFactory.V2.Tag.Command ProxyProtocolClientConnectionFactory.V2.Tag.Family ProxyProtocolClientConnectionFactory.V2.Tag.Protocol -
Exception Summary Exception Description HttpRequestException Deprecated. HttpResponseException Deprecated.