public final class Route extends Object
Constructor and Description |
---|
Route(Address address,
Proxy proxy,
InetSocketAddress inetSocketAddress,
ConnectionSpec connectionSpec) |
Route(Address address,
Proxy proxy,
InetSocketAddress inetSocketAddress,
ConnectionSpec connectionSpec,
boolean shouldSendTlsFallbackIndicator) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Address |
getAddress() |
ConnectionSpec |
getConnectionSpec() |
Proxy |
getProxy()
Returns the
Proxy of this route. |
boolean |
getShouldSendTlsFallbackIndicator() |
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, ConnectionSpec connectionSpec)
public Route(Address address, Proxy proxy, InetSocketAddress inetSocketAddress, ConnectionSpec connectionSpec, boolean shouldSendTlsFallbackIndicator)
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 ConnectionSpec getConnectionSpec()
public boolean getShouldSendTlsFallbackIndicator()
public boolean requiresTunnel()
Copyright © 2015. All rights reserved.