public final class PacProxyRouteParser extends Object
FindProxyForURL (or a Windows
ProxyServer value) into a ProxyResult.
The route string is a ;-separated preference list evaluated left to right;
the first usable entry wins:
DIRECT entry yields DIRECT pac-direct,PROXY host:port / HTTPS host:port / bare host:port
entry yields a ProxyResult.Kind.PROXY result,SOCKS) or a malformed host:port is an
error candidate.DIRECT:
they only become DIRECT when a later entry is an explicit DIRECT
(or a usable proxy). Otherwise the parser returns an ProxyResult.Kind.ERROR with a
technical reason (unsupported-pac-entry, invalid-proxy-port,
invalid-proxy-address, empty-pac-result). DIRECT is therefore only
returned when the PAC result itself explicitly contains DIRECT.| Constructor and Description |
|---|
PacProxyRouteParser() |
public ProxyResult parse(String pacResult)
Copyright © 2026. All rights reserved.