Package org.eclipse.jetty.client.api
Interface Destination
- 
- All Known Implementing Classes:
 HttpDestination,HttpDestinationOverHTTP,MultiplexHttpDestination,PoolingHttpDestination
@Deprecated(since="2021-05-27") public interface DestinationDeprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.Destinationrepresents the triple made of thegetScheme(), thegetHost()and thegetPort().Destinationholds a pool ofConnections, but allows to create unpooled connections if the application wants full control over connection management vianewConnection(Promise).Destinations may be obtained viaHttpClient.getDestination(String, String, int) 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.lang.StringgetHost()Deprecated.intgetPort()Deprecated.java.lang.StringgetScheme()Deprecated.voidnewConnection(Promise<Connection> promise)Deprecated.Creates asynchronously a new, unpooled,Connectionthat will be returned at a later time through the givenPromise. 
 - 
 
- 
- 
Method Detail
- 
getScheme
java.lang.String getScheme()
Deprecated.- Returns:
 - the scheme of this destination, such as "http" or "https"
 
 
- 
getHost
java.lang.String getHost()
Deprecated.- Returns:
 - the host of this destination, such as "127.0.0.1" or "google.com"
 
 
- 
getPort
int getPort()
Deprecated.- Returns:
 - the port of this destination such as 80 or 443
 
 
- 
newConnection
void newConnection(Promise<Connection> promise)
Deprecated.Creates asynchronously a new, unpooled,Connectionthat will be returned at a later time through the givenPromise.Use
FuturePromiseto wait for the connection:Destination destination = ...; FuturePromise<Connection> futureConnection = new FuturePromise<>(); destination.newConnection(futureConnection); Connection connection = futureConnection.get(5, TimeUnit.SECONDS);
- Parameters:
 promise- the promise of a new, unpooled,Connection
 
 - 
 
 -