-
public final class RouteThe concrete route used by a connection to reach an abstract origin server. When creating a connection the client has many options:
- HTTP proxy: a proxy server may be explicitly configured for the client. Otherwise the proxy selector is used. It may return multiple proxies to attempt.
- IP address: whether connecting directly to an origin server or a proxy, opening a socket requires an IP address. The DNS server may return multiple IP addresses to attempt.
Each route is a specific selection of these options.
-
-
Constructor Summary
Constructors Constructor Description Route(Address address, Proxy proxy, InetSocketAddress inetSocketAddress)
-
Method Summary
Modifier and Type Method Description Addressaddress()Proxyproxy()Returns the Proxy of this route. InetSocketAddresssocketAddress()booleanrequiresTunnel()Returns true if this route tunnels HTTPS through an HTTP proxy. booleanequals(@Nullable() Object other)inthashCode()StringtoString()-
-
Constructor Detail
-
Route
Route(Address address, Proxy proxy, InetSocketAddress inetSocketAddress)
-
-
Method Detail
-
socketAddress
InetSocketAddress socketAddress()
-
requiresTunnel
boolean requiresTunnel()
Returns true if this route tunnels HTTPS through an HTTP proxy. See RFC 2817, Section 5.2.
-
hashCode
int hashCode()
-
-
-
-