Interface PacScriptParser

All Known Implementing Classes:
JavaxPacScriptParser

public interface PacScriptParser
Common interface for PAC script parsers.
  • Method Summary

    Modifier and Type
    Method
    Description
    evaluate(String url, String host)
    Evaluates 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

      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.