Interface PacScriptSource

  • All Known Implementing Classes:
    UrlPacScriptSource

    public interface PacScriptSource
    An source to fetch the PAC script from.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getScriptContent()
      Gets the PAC script content as String.
      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.
    • Method Detail

      • getScriptContent

        java.lang.String getScriptContent()
                                   throws java.io.IOException
        Gets the PAC script content as String.
        Returns:
        a script.
        Throws:
        java.io.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.