public final class Route extends Object
Each route is a specific selection of these options.
| Constructor and Description |
|---|
Route(Address
|
| Modifier and Type | Method and Description |
|---|---|
Address |
address()
|
boolean |
equals(Object
|
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()
|
public Route(Addressaddress, Proxy proxy, InetSocketAddress inetSocketAddress)
public Addressaddress()
public Proxyproxy()
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 InetSocketAddresssocketAddress()
public boolean requiresTunnel()
public boolean equals(Objectobj)
public int hashCode()