public final class ProxyConfiguration extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ProxyConfiguration.Builder
Builder for
ProxyConfiguration. |
| Modifier and Type | Method and Description |
|---|---|
static ProxyConfiguration.Builder |
builder()
Create a configuration builder.
|
static ProxyConfiguration |
defaults()
Create default configuration.
|
String |
getManualProxyHost() |
int |
getManualProxyPort() |
ProxyMode |
getMode() |
String |
getPacUrl() |
String |
getPacUrlDiscoveryScript() |
String |
getTestUrl() |
String |
getWindowsPacScript() |
boolean |
isDebugEnabled() |
public static ProxyConfiguration defaults()
Important — the default mode is ProxyMode.PAC_URL_POWERSHELL.
This is a deliberate choice: it mirrors the proven user path on managed,
hardened Windows machines, where the PAC URL (AutoConfigURL) is
discovered by an inline powershell.exe -Command one-liner. As a
consequence, calling WindowsProxyResolver.resolve(String) on the
default configuration will spawn powershell.exe for the
discovery step (PowerShell only delivers the PAC URL, never the final
route). Callers that must not start PowerShell should select an explicit
mode such as ProxyMode.DISABLED,
ProxyMode.PAC_URL_WINDOWS_SETTINGS or ProxyMode.PAC_URL_MANUAL
via ProxyConfiguration.Builder.mode(ProxyMode).
ProxyMode.PAC_URL_POWERSHELL)public static ProxyConfiguration.Builder builder()
public ProxyMode getMode()
public String getTestUrl()
public String getPacUrl()
public String getPacUrlDiscoveryScript()
public String getWindowsPacScript()
public String getManualProxyHost()
public int getManualProxyPort()
public boolean isDebugEnabled()
Copyright © 2026. All rights reserved.