public final class Route extends Object
Constructor and Description |
---|
Route(Address address,
Proxy proxy,
InetSocketAddress inetSocketAddress) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Address |
getAddress() |
Proxy |
getProxy()
Returns the
Proxy of this route. |
InetSocketAddress |
getSocketAddress() |
int |
hashCode() |
boolean |
requiresTunnel()
Returns true if this route tunnels HTTPS through an HTTP proxy.
|
public Route(Address address, Proxy proxy, InetSocketAddress inetSocketAddress)
public Address getAddress()
public Proxy getProxy()
Proxy
of this route.
Warning: This may disagree with Address.getProxy()
when it is null. When the address's proxy is null, the proxy selector is
used.public InetSocketAddress getSocketAddress()
public boolean requiresTunnel()
Copyright © 2016. All Rights Reserved.