Creates a new ProxyAddress for inetaddr
with protocol
that
should tunnel through dest_hostname
and dest_port
.
(Note that this method doesn't set the uri or destination_protocol fields; use @new directly if you want to set those.)
inetaddr |
The proxy server InetAddress. |
port |
The proxy server port. |
protocol |
The proxy protocol to support, in lower case (e.g. socks, http). |
dest_hostname |
The destination hostname the proxy should tunnel to. |
dest_port |
The destination port to tunnel to. |
username |
The username to authenticate to the proxy server (or null). |
password |
The password to authenticate to the proxy server (or null). |
a new ProxyAddress |