Package com.microstrategy.utils.proxy
Interface PacScriptParser
-
- All Known Implementing Classes:
JavaxPacScriptParser
public interface PacScriptParser
Common interface for PAC script parsers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
evaluate(java.lang.String url, java.lang.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.
-
-
-
Method Detail
-
getScriptSource
PacScriptSource getScriptSource()
Gets the source of the PAC script used by this parser.- Returns:
- a PacScriptSource.
-
evaluate
java.lang.String evaluate(java.lang.String url, java.lang.String host) throws java.lang.Exception
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.java.lang.Exception
-
-