public class Route extends Object
proxy selector is used. It may return multiple proxies to attempt.
| Constructor and Description |
|---|
Route(Address address,
Proxy proxy,
InetSocketAddress inetSocketAddress,
boolean modernTls) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Address |
getAddress()
Returns the
Address of this route. |
Proxy |
getProxy()
Returns the
Proxy of this route. |
InetSocketAddress |
getSocketAddress()
Returns the
InetSocketAddress of this route. |
int |
hashCode() |
boolean |
isModernTls()
Returns true if this route uses modern TLS.
|
public Route(Address address, Proxy proxy, InetSocketAddress inetSocketAddress, boolean modernTls)
public Proxy getProxy()
Proxy of this route.
Warning: This may disagree with Address.getProxy()
is null. When the address's proxy is null, the proxy selector will be used.public InetSocketAddress getSocketAddress()
InetSocketAddress of this route.public boolean isModernTls()
Copyright © 2014. All Rights Reserved.