public final class WindowsProxyResolver extends Object
| Constructor and Description |
|---|
WindowsProxyResolver()
Create a resolver with the default PAC_URL configuration.
|
WindowsProxyResolver(ProxyConfiguration configuration)
Create a resolver with the given configuration.
|
| Modifier and Type | Method and Description |
|---|---|
PacUrlResolution |
discoverPacUrl()
Discover the PAC/WPAD URL from explicit configuration or Windows.
|
String |
discoverPacUrlWithPowerShell(String script)
Resolve a PAC URL with the default PowerShell script.
|
ProxyResult |
resolve(String targetUrl)
Resolve the proxy for a target URL using the configured mode.
|
ProxyResult |
resolve(String targetUrl,
PacUrlSource source,
String powerShellScript)
Deprecated.
Use
resolve(String) with ProxyConfiguration. |
String |
resolvePacUrl()
Deprecated.
Use
discoverPacUrl(). |
String |
resolvePacUrl(PacUrlSource source,
String powerShellScript)
Deprecated.
Use
ProxyConfiguration and ProxyMode. |
ProxyResult |
resolvePacUrl(String targetUrl)
Resolve a proxy through the default PAC_URL pipeline.
|
ProxyResult |
resolveRegistry(String targetUrl)
Resolve a proxy from static Windows registry proxy settings.
|
ProxyResult |
resolveWindowsPac(String targetUrl)
Resolve a proxy through Windows/.NET/PowerShell.
|
public WindowsProxyResolver()
public WindowsProxyResolver(ProxyConfiguration configuration)
configuration - proxy configurationpublic ProxyResult resolve(String targetUrl)
targetUrl - target URLpublic ProxyResult resolvePacUrl(String targetUrl)
targetUrl - target URLpublic PacUrlResolution discoverPacUrl()
public ProxyResult resolveWindowsPac(String targetUrl)
targetUrl - target URLpublic ProxyResult resolveRegistry(String targetUrl)
targetUrl - target URL@Deprecated public String resolvePacUrl()
discoverPacUrl().nullpublic String discoverPacUrlWithPowerShell(String script)
script - optional scriptnull@Deprecated public String resolvePacUrl(PacUrlSource source, String powerShellScript)
ProxyConfiguration and ProxyMode.source - legacy PAC URL sourcepowerShellScript - optional PowerShell scriptnull@Deprecated public ProxyResult resolve(String targetUrl, PacUrlSource source, String powerShellScript)
resolve(String) with ProxyConfiguration.targetUrl - target URLsource - legacy PAC URL sourcepowerShellScript - optional PowerShell scriptCopyright © 2026. All rights reserved.