Interface PacScriptParser

  • All Known Implementing Classes:
    JavaxPacScriptParser

    public interface PacScriptParser
    Common interface for PAC script parsers.
    • 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