public static class ProxyClient.ConnectResponse extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
ConnectMethod |
getConnectMethod()
Gets the method that was used to execute the connect.
|
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 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.Copyright © 2017. All rights reserved.