Command line options are described and added to the client. Registry is modified...
[jabaws.git] / webservices / compbio / ws / client / CmdHelper.java
index 1faf3dc..5b33aba 100644 (file)
@@ -1,11 +1,13 @@
 package compbio.ws.client;\r
 import static compbio.ws.client.Constraints.hostkey;\r
 import static compbio.ws.client.Constraints.limitList;\r
+import static compbio.ws.client.Constraints.listServices;\r
 import static compbio.ws.client.Constraints.paramList;\r
 import static compbio.ws.client.Constraints.presetList;\r
 import static compbio.ws.client.Constraints.presetkey;\r
 import static compbio.ws.client.Constraints.pseparator;\r
 import static compbio.ws.client.Constraints.servicekey;\r
+import static compbio.ws.client.Constraints.testKey;\r
 \r
 class CmdHelper {\r
 \r
@@ -32,6 +34,26 @@ class CmdHelper {
        }\r
 \r
        /**\r
+        * list available services\r
+        * \r
+        * @param cmd\r
+        * @return\r
+        */\r
+       static boolean listServices(String[] cmd) {\r
+               return keyFound(cmd, listServices);\r
+       }\r
+\r
+       /**\r
+        * tests service\r
+        * \r
+        * @param cmd\r
+        * @return\r
+        */\r
+       static boolean testService(String[] cmd) {\r
+               return keyFound(cmd, testKey);\r
+       }\r
+\r
+       /**\r
         * Checks whether the key is in the command line\r
         * \r
         * @param cmd\r