X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=getdown%2Fsrc%2Fgetdown%2Fcore%2Fsrc%2Fmain%2Fjava%2Fcom%2Fthreerings%2Fgetdown%2Fdata%2FBuild.java.tmpl;fp=getdown%2Fsrc%2Fgetdown%2Fcore%2Fsrc%2Fmain%2Fjava%2Fcom%2Fthreerings%2Fgetdown%2Fdata%2FBuild.java.tmpl;h=1023ede99521fdde08a7cb8b23aa89c8c3a7acba;hb=6a05eb3f55d97e685f0c723822384633d5636778;hp=60a8ff3378e67867494d45ddf152ad0dc0054f3f;hpb=d113749a183a3ea8f3f7e22c725511f59f1d833f;p=jalview.git diff --git a/getdown/src/getdown/core/src/main/java/com/threerings/getdown/data/Build.java.tmpl b/getdown/src/getdown/core/src/main/java/com/threerings/getdown/data/Build.java.tmpl index 60a8ff3..1023ede 100644 --- a/getdown/src/getdown/core/src/main/java/com/threerings/getdown/data/Build.java.tmpl +++ b/getdown/src/getdown/core/src/main/java/com/threerings/getdown/data/Build.java.tmpl @@ -40,4 +40,37 @@ public class Build { public static List hostWhitelist () { return Arrays.asList(StringUtil.parseStringArray("@host_whitelist@")); } + + /* + *

The default connect_timeout to use. Overridden by system property of the same name at runtime + */ + public static int defaultConnectTimeout () { + try { + return Integer.valueOf("@connect_timeout@"); + } catch (Exception e) { + return 0; + } + } + + /* + *

The default read_timeout to use. Overridden by system property of the same name at runtime + */ + public static int defaultReadTimeout () { + try { + return Integer.valueOf("@read_timeout@"); + } catch (Exception e) { + return 30; + } + } + + /* + *

Whether to allow the local "file://" scheme for appbase + */ + public static boolean allowLocatorFileProtocol() { + try { + return Boolean.valueOf("@allow_file_protocol@"); + } catch (Exception e) { + return false; + } + } }