public class JvmProxyDetector extends Object
| Constructor and Description |
|---|
JvmProxyDetector() |
| Modifier and Type | Method and Description |
|---|---|
Supplier<Optional<InetSocketAddress>> |
asOptionalSupplier() |
InetSocketAddress |
detectJvmProxy() |
protected InetSocketAddress |
detectJvmProxy(Properties sysprops)
Detects JVM proxy settings.
|
@Nullable public InetSocketAddress detectJvmProxy()
@Nullable protected InetSocketAddress detectJvmProxy(Properties sysprops) throws IllegalStateException, NumberFormatException
sysprops - the system propertiesIllegalStateException - if the HTTP and HTTPS proxy settings are inconsistentNumberFormatException - if the proxy ports are not integerspublic Supplier<Optional<InetSocketAddress>> asOptionalSupplier()
Copyright © 2016–2018. All rights reserved.