Interface PacScriptSource
- All Known Implementing Classes:
UrlPacScriptSource
public interface PacScriptSource
An source to fetch the PAC script from.
-
Method Summary
Modifier and TypeMethodDescriptionGets the PAC script content as String.boolean
Checks if the content of the script is valid and if it is possible to use this script source for a PAC selector.
-
Method Details
-
getScriptContent
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.
-