public interface Destination
Destination
represents the triple made of the scheme()
, the host()
and the port()
.
Destination
holds a pool of Connection
s, but allows to create unpooled
connections if the application wants full control over connection management via newConnection()
.
Destination
s may be obtained via HttpClient.getDestination(String, String, int)
Modifier and Type | Method and Description |
---|---|
String |
host() |
Future<Connection> |
newConnection() |
int |
port() |
String |
scheme() |
String scheme()
String host()
int port()
Future<Connection> newConnection()
Connection
Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.