public static class ProxyClient.ConnectResponse
extends java.lang.Object
| 限定符和类型 | 方法和说明 |
|---|---|
ConnectMethod |
getConnectMethod()
Gets the method that was used to execute the connect.
|
java.net.Socket |
getSocket()
Gets the socket connected and authenticated (if appropriate) to the configured
HTTP proxy, or
null if a connection could not be made. |
public ConnectMethod getConnectMethod()
public java.net.Socket getSocket()
null if a connection could not be made. It is the
responsibility of the user to close this socket when it is no longer needed.