git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
JAL-3633 ensure check both http:// or https:// for urls
[jalview.git]
/
src
/
jalview
/
util
/
HttpUtils.java
diff --git
a/src/jalview/util/HttpUtils.java
b/src/jalview/util/HttpUtils.java
index
a5a9460
..
74f77a2
100644
(file)
--- a/
src/jalview/util/HttpUtils.java
+++ b/
src/jalview/util/HttpUtils.java
@@
-64,4
+64,9
@@
public class HttpUtils
return false;
}
+ public static boolean startsWithHttpOrHttps(String file)
+ {
+ return file.startsWith("http://") || file.startsWith("https://");
+ }
+
}