2 * Jalview - A Sequence Alignment Editor and Viewer
3 * Copyright (C) 2007 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
29 * @param msa SequenceI[]
31 protected String WebServiceName;
32 protected String WebServiceJobTitle;
33 protected String WebServiceReference;
34 protected String WsURL;
35 protected WebserviceInfo wsInfo;
38 * mappings between abstract interface names and menu entries
40 protected java.util.Hashtable ServiceActions;
42 ServiceActions = new java.util.Hashtable();
43 ServiceActions.put("MsaWS", "Multiple Sequence Alignment");
44 ServiceActions.put("SecStrPred", "Secondary Structure Prediction");
50 protected WebserviceInfo setWebService(ServiceHandle sh)
52 WebServiceName = sh.getName();
53 if (ServiceActions.containsKey(sh.getAbstractName()))
55 WebServiceJobTitle = sh.getName(); // TODO: control sh.Name specification properly
56 // add this for short names. +(String) ServiceActions.get(sh.getAbstractName());
60 WebServiceJobTitle = sh.getAbstractName() + " using " + sh.getName();
63 WebServiceReference = sh.getDescription();
64 WsURL = sh.getEndpointURL();
65 WebserviceInfo wsInfo = new WebserviceInfo(WebServiceJobTitle,