Interface PacScriptParser
-
- All Known Implementing Classes:
JavaxPacScriptParser
public interface PacScriptParserCommon interface for PAC script parsers.- Author:
- Markus Bernhardt, Copyright 2016, Bernd Rosstauscher, Copyright 2009
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringevaluate(String url, String host)Evaluates the given URL and host against the PAC script.PacScriptSourcegetScriptSource()Gets the source of the PAC script used by this parser.
-
-
-
Method Detail
-
getScriptSource
PacScriptSource getScriptSource()
Gets the source of the PAC script used by this parser.- Returns:
- a PacScriptSource.
-
evaluate
String evaluate(String url, String host) throws ProxyEvaluationException
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.
-
-