public final class ConnectionSelector extends Object
| Constructor and Description |
|---|
ConnectionSelector(List<ConnectionSuite> connectionSuites) |
| Modifier and Type | Method and Description |
|---|---|
ConnectionSuite |
configureSecureSocket(SSLSocket sslSocket)
|
boolean |
connectionFailed(IOException ex)
报告连接失败。确定下一个要尝试的
ConnectionSuite(如果有的话) |
public ConnectionSelector(List<ConnectionSuite> connectionSuites)
public ConnectionSuite configureSecureSocket(SSLSocket sslSocket) throws IOException
sslSocket - ssl套接字IOException - 如果套接字不支持任何可用的TLS模式public boolean connectionFailed(IOException ex)
ConnectionSuite(如果有的话)ex - 异常信息configureSecureSocket(SSLSocket) 或false重试连接,
则为true;如果不需要重试连接,则为configureSecureSocket(SSLSocket)或falseCopyright © 2019. All rights reserved.