X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Futil%2FHttpUtils.java;h=74f77a2ca72bc3c77e7e73777adeddb1d778809d;hb=ed96e73a6db654d52a6a1b1d27c2ee707876a4c7;hp=68e628a886984d8ad72f2e76fbb03e78fcdea057;hpb=838e4f91d4a53dd315640dbc9ff6ef7a815ee576;p=jalview.git diff --git a/src/jalview/util/HttpUtils.java b/src/jalview/util/HttpUtils.java index 68e628a..74f77a2 100644 --- a/src/jalview/util/HttpUtils.java +++ b/src/jalview/util/HttpUtils.java @@ -1,6 +1,6 @@ -/******************************************************************************* - * Jalview - A Sequence Alignment Editor and Viewer (2.9.0b1) - * Copyright (C) 2015 The Jalview Authors +/* + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ The Jalview Authors * * This file is part of Jalview. * @@ -17,7 +17,7 @@ * You should have received a copy of the GNU General Public License * along with Jalview. If not, see . * The Jalview Authors are detailed in the 'AUTHORS' file. - ******************************************************************************/ + */ package jalview.util; import java.io.IOException; @@ -64,4 +64,9 @@ public class HttpUtils return false; } + public static boolean startsWithHttpOrHttps(String file) + { + return file.startsWith("http://") || file.startsWith("https://"); + } + }