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 obj) |
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() |
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(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2016. All Rights Reserved.