Package org.eclipse.jetty.client.api
Interface Connection
-
- All Superinterfaces:
java.lang.AutoCloseable
,java.io.Closeable
- All Known Implementing Classes:
HttpConnection
,HttpConnectionOverHTTP
@Deprecated(since="2021-05-27") public interface Connection extends java.io.Closeable
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.Connection
represent a connection to aDestination
and allow applications to send requests viasend(Request, Response.CompleteListener)
.Connection
s are normally pooled byDestination
s, but unpooledConnection
s may be created by applications that want to do their own connection management viaDestination.newConnection(Promise)
andclose()
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
close()
Deprecated.boolean
isClosed()
Deprecated.void
send(Request request, Response.CompleteListener listener)
Deprecated.Sends a request with an associated response listener.
-
-
-
Method Detail
-
send
void send(Request request, Response.CompleteListener listener)
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:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
-
isClosed
boolean isClosed()
Deprecated.- Returns:
- whether this connection has been closed
- See Also:
close()
-
-