public final class Route
extends java.lang.Object
Each route is a specific selection of these options.
| 构造器和说明 |
|---|
Route(Address address,
java.net.Proxy proxy,
java.net.InetSocketAddress inetSocketAddress) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在类中 java.lang.Objectpublic int hashCode()
hashCode 在类中 java.lang.Objectpublic java.lang.String toString()
toString 在类中 java.lang.ObjectCopyright © 2018. All Rights Reserved.