Interface PacScriptSource

  • All Known Implementing Classes:
    UrlPacScriptSource

    public interface PacScriptSource
    An source to fetch the PAC script from.
    Author:
    Markus Bernhardt, Copyright 2016, Bernd Rosstauscher, Copyright 2009
    • Method Detail

      • getScriptContent

        String getScriptContent()
                         throws IOException
        Gets the PAC script content as String.
        Returns:
        a script.
        Throws:
        IOException - on read error.
      • isScriptValid

        boolean isScriptValid()
        Checks if the content of the script is valid and if it is possible to use this script source for a PAC selector. Note that this might trigger a download of the script content from a remote location.
        Returns:
        true if everything is fine, else false.