Debian Codegraph @

src/main/java/com/github/markusbernhardt/proxy/selector/pac/PacScriptSource.java

raw symbols SCIP
1 package com.github.markusbernhardt.proxy.selector.pac;
2
3 import java.io.IOException;
4
5 /*****************************************************************************
6 * An source to fetch the PAC script from.
7 *
8 * @author Markus Bernhardt, Copyright 2016
9 * @author Bernd Rosstauscher, Copyright 2009
10 ****************************************************************************/
11
12 public interface PacScriptSource {
13
14 /*************************************************************************
15 * Gets the PAC script content as String.
16 *
17 * @return a script.
18 * @throws IOException
19 * on read error.
20 ************************************************************************/
21
22 public String getScriptContent() throws IOException;
23
24 /*************************************************************************
25 * Checks if the content of the script is valid and if it is possible to use
26 * this script source for a PAC selector. Note that this might trigger a
27 * download of the script content from a remote location.
28 *
29 * @return true if everything is fine, else false.
30 ************************************************************************/
31
32 public boolean isScriptValid();
33
34 }