public final class Route
extends java.lang.Object
Each route is a specific selection of these options.
| Constructor and Description |
|---|
Route(Address address,
java.net.Proxy proxy,
java.net.InetSocketAddress inetSocketAddress) |
| Modifier and Type | Method and Description |
|---|---|
Address |
address() |
boolean |
equals(java.lang.Object other) |
int |
hashCode() |
java.net.Proxy |
proxy()
Returns the
Proxy of this route. |
boolean |
requiresTunnel()
Returns true if this route tunnels HTTPS through an HTTP proxy.
|
java.net.InetSocketAddress |
socketAddress() |
java.lang.String |
toString() |
public Route(Address address, java.net.Proxy proxy, java.net.InetSocketAddress inetSocketAddress)
public Address address()
public java.net.Proxy proxy()
Proxy of this route.
Warning: This may disagree with Address.proxy when it is null. When
the address's proxy is null, the proxy selector is used.public java.net.InetSocketAddress socketAddress()
public boolean requiresTunnel()
public boolean equals(@Nullable
java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2017. All Rights Reserved.