public final class Route
extends java.lang.Object
Constructor and Description |
---|
Route(Address address,
java.net.Proxy proxy,
java.net.InetSocketAddress inetSocketAddress,
ConnectionSpec connectionSpec) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Address |
getAddress() |
ConnectionSpec |
getConnectionSpec() |
java.net.Proxy |
getProxy()
Returns the
Proxy of this route. |
java.net.InetSocketAddress |
getSocketAddress() |
int |
hashCode() |
boolean |
requiresTunnel()
Returns true if this route tunnels HTTPS through an HTTP proxy.
|
public Route(Address address, java.net.Proxy proxy, java.net.InetSocketAddress inetSocketAddress, ConnectionSpec connectionSpec)
public Address getAddress()
public java.net.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 java.net.InetSocketAddress getSocketAddress()
public ConnectionSpec getConnectionSpec()
public boolean requiresTunnel()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2014. All Rights Reserved.