public interface IProxySettingsProvider extends Serializable
| Modifier and Type | Method and Description |
|---|---|
com.helger.commons.collection.impl.ICommonsList<IProxySettings> |
getAllProxySettings(String sProtocol,
String sHostName,
int nPort) |
default void |
onConnectionFailed(IProxySettings aProxySettings,
URI aURI,
SocketAddress aAddr,
IOException ex)
Invoked if the connection to a proxy server failed.
|
@Nullable com.helger.commons.collection.impl.ICommonsList<IProxySettings> getAllProxySettings(@Nullable String sProtocol, @Nullable String sHostName, @CheckForSigned int nPort)
sProtocol - The protocol that's requesting the connectionsHostName - The hostname of the site requesting authentication.nPort - the port for the requested connectionnull to indicate
that none was found.default void onConnectionFailed(@Nonnull IProxySettings aProxySettings, @Nonnull URI aURI, @Nonnull SocketAddress aAddr, @Nonnull IOException ex)
aProxySettings - The proxy settings that contains the failed proxy. Never
null.aURI - The URI that the proxy failed to serve. Never null.aAddr - The socket address of the proxy/SOCKS server. Never
null.ex - The I/O exception thrown when the connect failed. Never
null.Copyright © 2016–2019 Philip Helger. All rights reserved.