public final class Route extends Object
Each route is a specific selection of these options.
| Constructor | Description |
|---|---|
Route(Address address,
Proxy proxy,
InetSocketAddress inetSocketAddress) |
| Modifier and Type | Method | 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 © 2021. All rights reserved.