public final class GraalPacScriptEvaluator extends Object implements PacEvaluator
| Modifier and Type | Class and Description |
|---|---|
static class |
GraalPacScriptEvaluator.PacHostResolver
Provides PAC helper implementations to GraalJS.
|
| Constructor and Description |
|---|
GraalPacScriptEvaluator(ProxyResultParser proxyResultParser) |
| Modifier and Type | Method and Description |
|---|---|
ProxyResult |
evaluate(String pacScript,
String targetUrl)
Evaluate the PAC script for the given target URL.
|
ProxyResult |
evaluateFromPacUrl(String pacUrl,
String targetUrl)
Evaluate a PAC URL for the given target URL.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateDefaultpublic GraalPacScriptEvaluator(ProxyResultParser proxyResultParser)
public ProxyResult evaluate(String pacScript, String targetUrl)
PacEvaluatorevaluate in interface PacEvaluatorpacScript - PAC JavaScript contenttargetUrl - target URLpublic ProxyResult evaluateFromPacUrl(String pacUrl, String targetUrl)
PacEvaluatorevaluateFromPacUrl in interface PacEvaluatorpacUrl - URL of the PAC scripttargetUrl - target URLCopyright © 2026. All rights reserved.