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. |
String |
getTlsVersion() |
int |
hashCode() |
boolean |
isModernTls()
Deprecated.
replaced with
getTlsVersion() in OkHttp 2.0. |
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.@Deprecated public boolean isModernTls()
getTlsVersion()
in OkHttp 2.0.public String getTlsVersion()
Copyright © 2014. All Rights Reserved.