PacScriptParserpublic class JavaxPacScriptParser extends Object implements PacScriptParser
| Constructor | Description |
|---|---|
JavaxPacScriptParser(PacScriptSource source) |
Constructor
|
| Modifier and Type | Method | Description |
|---|---|---|
String |
evaluate(String url,
String host) |
Evaluates the given URL and host against the PAC script.
|
PacScriptSource |
getScriptSource() |
Gets the source of the PAC script used by this parser.
|
public JavaxPacScriptParser(PacScriptSource source) throws ProxyEvaluationException
source - the source for the PAC script.ProxyEvaluationException - on error.public PacScriptSource getScriptSource()
getScriptSource in interface PacScriptParserpublic String evaluate(String url, String host) throws ProxyEvaluationException
evaluate in interface PacScriptParserurl - the URL to evaluate.host - the host name part of the URL.ProxyEvaluationException - on execution error.Copyright © 2019. All rights reserved.