public class Route extends Object
Constructor and Description |
---|
Route(Address address,
Proxy proxy,
InetSocketAddress inetSocketAddress,
boolean modernTls) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Address |
getAddress()
Returns the
Address of this route. |
Proxy |
getProxy()
Returns the
Proxy of this route. |
InetSocketAddress |
getSocketAddress()
Returns the
InetSocketAddress of this route. |
int |
hashCode() |
boolean |
isModernTls()
Returns true if this route uses modern TLS.
|
public Route(Address address, Proxy proxy, InetSocketAddress inetSocketAddress, boolean modernTls)
public Proxy getProxy()
Proxy
of this route.
Warning: This may be different than the proxy returned
by getAddress()
! That is the proxy that the user asked to be
connected to; this returns the proxy that they were actually connected
to. The two may disagree when a proxy selector selects a different proxy
for a connection.public InetSocketAddress getSocketAddress()
InetSocketAddress
of this route.public boolean isModernTls()
Copyright © 2014. All rights reserved.