1 23 24 package com.sun.enterprise.cli.commands; 25 26 import com.sun.enterprise.cli.framework.*; 27 import java.util.Map ; 28 29 import java.util.Vector ; 30 import java.util.Iterator ; 31 import com.sun.appserv.management.ext.logging.LogAnalyzer; 32 33 public class WebServiceRegistryCommand extends GenericCommand 34 { 35 36 final static String DELIMITER = ","; 37 41 protected String [] createStringArrayParam(String str) 42 throws CommandException 43 { 44 final String strArrayVal = replacePattern(str); 45 CLILogger.getInstance().printDebugMessage("strArrayVal value = \""+ strArrayVal + "\""); 46 if ((strArrayVal == null) || (strArrayVal.equals("")) || (strArrayVal.equals("null"))) 47 return null; 48 49 final CLITokenizer cliTokenizer = new CLITokenizer(strArrayVal, DELIMITER); 50 String [] strArray = new String [cliTokenizer.countTokens()]; 51 int ii=0; 52 while (cliTokenizer.hasMoreTokens()) 53 { 54 strArray[ii++] = cliTokenizer.nextTokenWithoutEscapeAndQuoteChars(); 55 } 56 return strArray; 57 } 58 59 60 } 61 | Popular Tags |