diff options
author | Björn Hagemeister | 2014-11-11 14:40:18 +0100 |
---|---|---|
committer | Björn Hagemeister | 2014-11-11 14:40:18 +0100 |
commit | e70ee5b59306ea37dd0c72603c61b33b1555def9 (patch) | |
tree | e6f09d76449da54463b9b4fa408b7dfba4b4b7bf /src/main/java/com/btr/proxy/selector/pac/PacScriptSource.java | |
download | proxy-vole-e70ee5b59306ea37dd0c72603c61b33b1555def9.tar.gz proxy-vole-e70ee5b59306ea37dd0c72603c61b33b1555def9.tar.xz proxy-vole-e70ee5b59306ea37dd0c72603c61b33b1555def9.zip |
Added proxy java classes.
Diffstat (limited to 'src/main/java/com/btr/proxy/selector/pac/PacScriptSource.java')
-rw-r--r-- | src/main/java/com/btr/proxy/selector/pac/PacScriptSource.java | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/main/java/com/btr/proxy/selector/pac/PacScriptSource.java b/src/main/java/com/btr/proxy/selector/pac/PacScriptSource.java new file mode 100644 index 0000000..05e00b6 --- /dev/null +++ b/src/main/java/com/btr/proxy/selector/pac/PacScriptSource.java @@ -0,0 +1,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(); + +}
\ No newline at end of file |