Package org.eclipse.jetty.client.api
Interface Connection
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
HttpConnection,HttpConnectionOverHTTP
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
Connection represent a connection to a Destination and allow applications to send
requests via send(Request, Response.CompleteListener).
Connections are normally pooled by Destinations, but unpooled Connections
may be created by applications that want to do their own connection management via
Destination.newConnection(Promise) and close().
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Deprecated.booleanisClosed()Deprecated.voidsend(Request request, Response.CompleteListener listener) Deprecated.Sends a request with an associated response listener.
-
Method Details
-
send
Deprecated.Sends a request with an associated response listener.Request.send(Response.CompleteListener)will eventually call this method to send the request. It is exposed to allow applications to send requests via unpooled connections.- Parameters:
request- the request to sendlistener- the response listener
-
close
void close()Deprecated.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
isClosed
boolean isClosed()Deprecated.- Returns:
- whether this connection has been closed
- See Also:
-