blob: 05e00b6441505fd7ba45259b4b38397b949931a7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
package com.btr.proxy.selector.pac;
import java.io.IOException;
/*****************************************************************************
* An source to fetch the PAC script from.
*
* @author Bernd Rosstauscher (proxyvole@rosstauscher.de) Copyright 2009
****************************************************************************/
public interface PacScriptSource {
/*************************************************************************
* Gets the PAC script content as String.
* @return a script.
* @throws IOException on read error.
************************************************************************/
public String getScriptContent() throws IOException;
/*************************************************************************
* 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.
* @return true if everything is fine, else false.
************************************************************************/
public boolean isScriptValid();
}
|