Web service stubs are regenerated to incorporate new the methods. Excveption handling...
[jabaws.git] / webservices / compbio / ws / server / ProbconsWS.java
index 85e8a70..586352b 100644 (file)
@@ -61,7 +61,7 @@ public class ProbconsWS implements MsaWS<Probcons> {
        private static final RunnerConfig<Probcons> probconsOptions = Util\r
                        .getSupportedOptions(Probcons.class);\r
 \r
-       private static final LimitsManager<Probcons> limitMan = compbio.runner.Util\r
+       private static final LimitsManager<Probcons> limitMan = compbio.engine.client.Util\r
                        .getLimits(new Probcons().getType());\r
 \r
        @Override\r
@@ -76,7 +76,6 @@ public class ProbconsWS implements MsaWS<Probcons> {
        ConfiguredExecutable<Probcons> init(List<FastaSequence> dataSet)\r
                        throws JobSubmissionException {\r
                Probcons probcons = new Probcons();\r
-               probcons.setInput("fasta.in").setOutput("alignment.out");\r
                return Configurator.configureExecutable(probcons, dataSet);\r
        }\r
 \r
@@ -123,6 +122,10 @@ public class ProbconsWS implements MsaWS<Probcons> {
 \r
        @Override\r
        public Limit<Probcons> getLimit(String presetName) {\r
+               if (limitMan == null) {\r
+                       // Limit is not defined\r
+                       return null;\r
+               }\r
                return limitMan.getLimitByName(presetName);\r
        }\r
 \r