@ThreadSafe public final class ProxySettingsManager extends Object
IProxySettingsProvider.| Modifier and Type | Method and Description |
|---|---|
static com.helger.commons.collection.impl.ICommonsOrderedSet<IProxySettings> |
findAllProxySettings(String sProtocol,
String sHostName,
int nPort)
Find all proxy settings matching the provided parameters.
|
static com.helger.commons.collection.impl.ICommonsOrderedSet<IProxySettings> |
findAllProxySettings(URI aURI)
Find all proxy settings matching the provided parameters.
|
static com.helger.commons.collection.impl.ICommonsList<IProxySettingsProvider> |
getAllProviders() |
static com.helger.commons.state.EHandled |
onConnectionFailed(URI aURI,
SocketAddress aAddr,
IOException ex) |
static void |
registerProvider(IProxySettingsProvider aProvider) |
static com.helger.commons.state.EChange |
removeAllProviders() |
static com.helger.commons.state.EChange |
unregisterProvider(IProxySettingsProvider aProvider) |
@Nonnull @ReturnsMutableCopy public static com.helger.commons.collection.impl.ICommonsList<IProxySettingsProvider> getAllProviders()
public static void registerProvider(@Nonnull IProxySettingsProvider aProvider)
@Nonnull public static com.helger.commons.state.EChange unregisterProvider(@Nullable IProxySettingsProvider aProvider)
@Nonnull public static com.helger.commons.state.EChange removeAllProviders()
@Nonnull @ReturnsMutableCopy public static com.helger.commons.collection.impl.ICommonsOrderedSet<IProxySettings> findAllProxySettings(@Nonnull URI aURI)
aURI - Destination URInull set with all matching proxy settings. A set
is used to avoid that the same settings are used more than once.findAllProxySettings(String, String, int)@Nonnull @ReturnsMutableCopy public static com.helger.commons.collection.impl.ICommonsOrderedSet<IProxySettings> findAllProxySettings(@Nullable String sProtocol, @Nullable String sHostName, @CheckForSigned int nPort)
sProtocol - Destination server protocol.sHostName - Destination host namenPort - Destination portnull set with all matching proxy settings. A set
is used to avoid that the same settings are used more than once.@Nonnull public static com.helger.commons.state.EHandled onConnectionFailed(@Nonnull URI aURI, @Nonnull SocketAddress aAddr, @Nonnull IOException ex)
Copyright © 2016–2019 Philip Helger. All rights reserved.