It is java.net.Socket.
Unfortunately, current implementation doesn't fully support a proxy.
Class has the next constructor public Socket(Proxy proxy).
There are tree types of proxy: DIRECT, SOCKS, HTTP.
At present HTTP isn't supported.
See code:
120 public Socket(Proxy proxy) { 121 if (null == proxy || Proxy.Type.HTTP == proxy.type()) { 122 // KA023=Proxy is null or invalid type 123 throw new IllegalArgumentException(Msg.getString("KA023")); //$NON-NLS-1$ 124 } ... 140 }
No comments:
Post a Comment