@Immutable public class HttpProxyConfig extends Object implements IProxyConfig
Authenticator.setDefault (...) with the same username and
password as well!| Constructor and Description |
|---|
HttpProxyConfig(EHttpProxyType eProxyType,
String sHost,
int nPort) |
HttpProxyConfig(EHttpProxyType eProxyType,
String sHost,
int nPort,
List<String> aNonProxyHosts) |
HttpProxyConfig(EHttpProxyType eProxyType,
String sHost,
int nPort,
String sUserName,
String sPassword,
List<String> aNonProxyHosts) |
| Modifier and Type | Method and Description |
|---|---|
void |
activateGlobally()
Activate this proxy configuration.
|
static void |
deactivateGlobally() |
boolean |
equals(Object o) |
Authenticator |
getAsAuthenticator() |
Proxy |
getAsProxy() |
String |
getHost() |
com.helger.commons.collection.impl.ICommonsList<String> |
getNonProxyHosts() |
String |
getPassword() |
int |
getPort() |
EHttpProxyType |
getType() |
String |
getUserName() |
int |
hashCode() |
boolean |
hasUserNameOrPassword() |
String |
toString() |
public HttpProxyConfig(@Nonnull EHttpProxyType eProxyType, @Nonnull @Nonempty String sHost, @Nonnegative int nPort)
public HttpProxyConfig(@Nonnull EHttpProxyType eProxyType, @Nonnull @Nonempty String sHost, @Nonnegative int nPort, @Nullable List<String> aNonProxyHosts)
@Nonnull public EHttpProxyType getType()
@Nonnegative public int getPort()
public boolean hasUserNameOrPassword()
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsList<String> getNonProxyHosts()
@Nullable public Authenticator getAsAuthenticator()
public void activateGlobally()
IProxyConfigactivateGlobally in interface IProxyConfigpublic static void deactivateGlobally()
@Nonnull public Proxy getAsProxy()
getAsProxy in interface IProxyConfigProxy object.
May be null if no adequate object can be created.Copyright © 2016–2019 Philip Helger. All rights reserved.