/** * Gets the option value. * * @param allOptions * the all options * @param optionName * the option name * @return the option value */ private static String getOptionValue(Map allOptions, String optionName) { CommandLineOption option = (CommandLineOption) allOptions .get(optionName); if (option != null) { return option.getOptionValue().toString(); } return null; }
/** * For Axis2 * * @param key * @param value * @param configurationMap * @return */ public static String getConfiguratonElement(String key, CommandLineOption value, Map configurationMap, Map defaultValueMap) { String s = (String) configurationMap.get(key); if (s == null) { return ""; } String stringValue = null; if (value.getOptionValue() == null) { if (defaultValueMap.containsKey(key)) { stringValue = (String) defaultValueMap.get(key); } else { stringValue = "true"; } } else { stringValue = value.getOptionValue(); } return "<" + s + ">" + stringValue + "</" + s + ">"; }
userName = userOption.getOptionValue(); password = passwordOption.getOptionValue(); url = new URL(urlOption.getOptionValue()); } catch (MalformedURLException e) { return;
originalArgsOps.remove("-".concat(op.getOptionType())); if (op.getOptionValue() != null) { originalArgsOps.remove(op.getOptionValue());
repoLocation = repoOption.getOptionValue(); log.info("[SimpleAxisServer] Using the Axis2 Repository" + new File(repoLocation).getAbsolutePath()); confLocation = confOption.getOptionValue(); System.out .println("[SimpleAxisServer] Using the Axis2 Configuration File"
repoLocation = repoOption.getOptionValue(); log.info("[SimpleAxisServer] Using the Axis2 Repository" + new File(repoLocation).getAbsolutePath()); confLocation = confOption.getOptionValue(); System.out .println("[SimpleAxisServer] Using the Axis2 Configuration File"
for (Iterator iterator = list.iterator(); iterator.hasNext();) { CommandLineOption commandLineOption = (CommandLineOption) iterator.next(); String optionValue = commandLineOption.getOptionValue(); faultOptions += "Invalid input for [ " + commandLineOption.getOptionType() + (optionValue != null ? " : " + optionValue + " ]" : " ]") throw new AxisFault("WSDL URI or Path Cannot be empty"); String uriValue = commandLineOption.getOptionValue().trim(); projectName = getProjectName(uriValue); if ("".equals(uriValue)) {
repoLocation = repoOption.getOptionValue(); System.out.println("[SimpleAxisServer] Using the Axis2 Repository : " + new File(repoLocation).getAbsolutePath()); confLocation = confOption.getOptionValue(); System.out .println("[SimpleAxisServer] Using the Axis2 Configuration File : "
repoLocation = repoOption.getOptionValue(); System.out.println("[SimpleAxisServer] Using the Axis2 Repository : " + new File(repoLocation).getAbsolutePath()); confLocation = confOption.getOptionValue(); System.out .println("[SimpleAxisServer] Using the Axis2 Configuration File : "
repoLocation = repoOption.getOptionValue(); System.out.println("[SimpleAxisServer] Using the Axis2 Repository : " + new File(repoLocation).getAbsolutePath()); confLocation = confOption.getOptionValue(); System.out .println("[SimpleAxisServer] Using the Axis2 Configuration File : "
outputLocation = commandLineOption.getOptionValue(); WSDL2JavaConstants.PACKAGE_OPTION_LONG, optionMap); if (commandLineOption != null) { config.setPackageName(commandLineOption.getOptionValue()); WSDL2JavaConstants.STUB_LANGUAGE_OPTION_LONG, optionMap); if (commandLineOption != null) { config.setOutputLanguage(commandLineOption.getOptionValue()); WSDL2JavaConstants.DATA_BINDING_TYPE_OPTION_LONG, optionMap); if (commandLineOption != null) { config.setDatabindingType(commandLineOption.getOptionValue()); optionMap); if (commandLineOption != null) { config.setSourceLocation(commandLineOption.getOptionValue()); WSDL2JavaConstants.RESOURCE_FOLDER_OPTION_LONG, optionMap); if (commandLineOption != null) { config.setResourceLocation(commandLineOption.getOptionValue()); config.setPortName(commandLineOption != null ? commandLineOption.getOptionValue() : null); commandLineOption != null ? commandLineOption.getOptionValue() : null); commandLineOption != null ? commandLineOption.getOptionValue() : null); if (commandLineOption != null) {