null for non-PROXY results.ProxyResult.Kind of this result.0 for non-PROXY results.true only if the mode genuinely yields DIRECT (not on error).true if resolution failed; see ProxyResult.getReason().true if the selected mode is reserved/not implemented.true for a concrete host:port proxy.NOT_IMPLEMENTED result for reserved future modes.FindProxyForURL (or a Windows
ProxyServer value) into a ProxyResult.PAC_URL_* modes:ProxyConfiguration.ProxyResult.Proxy, honouring the ProxyResult.Kind:
ProxyResult.Kind.PROXY → an HTTP Proxy for host:port,
ProxyResult.Kind.DIRECT → Proxy.NO_PROXY,
ProxyResult.Kind.ERROR / ProxyResult.Kind.NOT_IMPLEMENTED → IllegalStateException.
Errors and not-implemented results deliberately throw instead of silently
degrading to Proxy.NO_PROXY, so a failed resolution can never be
mistaken for a genuine DIRECT route.ProxyResult.toJavaProxy() that never throws:
ProxyResult.Kind.PROXY → an HTTP Proxy for host:port,
ProxyResult.Kind.DIRECT, ProxyResult.Kind.ERROR, ProxyResult.Kind.NOT_IMPLEMENTED
→ Proxy.NO_PROXY.
Only use this when the caller has explicitly decided that a failed or
not-implemented resolution should fall back to a direct connection.URLConnection.PAC_URL_* mode (GraalVM PAC evaluation) instead.Copyright © 2026. All rights reserved.