public final class Route extends Object
Each route is a specific selection of these options.
Constructor and Description |
---|
Route(Address address,
Proxy proxy,
InetSocketAddress inetSocketAddress) |
Modifier and Type | Method and Description |
---|---|
Address |
address() |
boolean |
equals(Object other) |
int |
hashCode() |
Proxy |
proxy()
Returns the
Proxy of this route. |
boolean |
requiresTunnel()
Returns true if this route tunnels HTTPS through an HTTP proxy.
|
InetSocketAddress |
socketAddress() |
String |
toString() |
public Route(Address address, Proxy proxy, InetSocketAddress inetSocketAddress)
public Address address()
public Proxy proxy()
Proxy
of this route.
Warning: This may disagree with Address.proxy
when it is null. When
the address's proxy is null, the proxy selector is used.public InetSocketAddress socketAddress()
public boolean requiresTunnel()
Copyright © 2019. All rights reserved.