bfbecb7d0287c9b137a18563ef47f885b11eefc3
[jabaws.git] / webservices / compbio / ws / server / GlobPlotWS.java
1 package compbio.ws.server;\r
2 \r
3 import java.util.List;\r
4 \r
5 import javax.jws.WebService;\r
6 \r
7 import org.apache.log4j.Logger;\r
8 \r
9 import compbio.data.msa.JABAService;\r
10 import compbio.data.msa.SequenceAnnotation;\r
11 import compbio.data.sequence.FastaSequence;\r
12 import compbio.metadata.JobSubmissionException;\r
13 import compbio.metadata.LimitExceededException;\r
14 import compbio.metadata.Option;\r
15 import compbio.metadata.Preset;\r
16 import compbio.metadata.UnsupportedRuntimeException;\r
17 import compbio.metadata.WrongParameterException;\r
18 import compbio.runner.disorder.GlobPlot;\r
19 \r
20 @WebService(endpointInterface = "compbio.data.msa.SequenceAnnotation", targetNamespace = JABAService.V2_SERVICE_NAMESPACE, serviceName = "GlobPlotWS")\r
21 public class GlobPlotWS extends SequenceAnnotationService<GlobPlot>\r
22                 implements\r
23                         SequenceAnnotation<GlobPlot> {\r
24 \r
25         private static Logger log = Logger.getLogger(GlobPlotWS.class);\r
26 \r
27         public GlobPlotWS() {\r
28                 super(new GlobPlot(), log);\r
29         }\r
30 \r
31         /*\r
32          * No options are supported, thus the result of this call will be as simple\r
33          * call to analize without parameters\r
34          */\r
35         @Override\r
36         public String customAnalize(List<FastaSequence> sequences,\r
37                         List<Option<GlobPlot>> options) throws UnsupportedRuntimeException,\r
38                         LimitExceededException, JobSubmissionException,\r
39                         WrongParameterException {\r
40                 return analize(sequences);\r
41         }\r
42 \r
43         /*\r
44          * No presets are supported, thus the result of this call will be as simple\r
45          * call to analize without parameters\r
46          */\r
47         @Override\r
48         public String presetAnalize(List<FastaSequence> sequences,\r
49                         Preset<GlobPlot> preset) throws UnsupportedRuntimeException,\r
50                         LimitExceededException, JobSubmissionException,\r
51                         WrongParameterException {\r
52 \r
53                 return analize(sequences);\r
54         }\r
55 \r
56 }\r