Interface PacScriptSource
-
- All Known Implementing Classes:
UrlPacScriptSource
public interface PacScriptSourceAn source to fetch the PAC script from.- Author:
- Markus Bernhardt, Copyright 2016, Bernd Rosstauscher, Copyright 2009
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetScriptContent()Gets the PAC script content as String.booleanisScriptValid()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
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.
-
-