Interface PacScriptParser
- All Known Implementing Classes:
JavaxPacScriptParser
public interface PacScriptParser
Common interface for PAC script parsers.
-
Method Summary
Modifier and TypeMethodDescriptionEvaluates the given URL and host against the PAC script.Gets the source of the PAC script used by this parser.
-
Method Details
-
getScriptSource
PacScriptSource getScriptSource()Gets the source of the PAC script used by this parser.- Returns:
- a PacScriptSource.
-
evaluate
Evaluates the given URL and host against the PAC script.- Parameters:
url
- the URL to evaluate.host
- the host name part of the URL.- Returns:
- the script result.
- Throws:
ProxyEvaluationException
- on execution error.
-