protected String[] getPingURLList() { try { setServerisStillStarting(true); String url = "http://" + getServer().getHost(); List<String> urls = new ArrayList<String>(); ServerPort[] ports = getServerPorts(getServer()); ServerPort sp = null; int port = 0; int offSet = 0; for (int i = 0; i < ports.length; i++) { int j = CarbonServerConstants.PORT_CAPTIONS.indexOf(ports[i].getName()); if (j != -1 && CarbonServerConstants.PORT_IDS.get(j).equals("carbon.http")) { sp = ports[i]; port = sp.getPort(); } else if (j != -1 && CarbonServerConstants.PORT_IDS.get(j).equals("carbon.offset")) { sp = ports[i]; offSet = sp.getPort(); } } String newUrl = url; if (port != 80) { newUrl = newUrl + ":" + (port + offSet); // $NON-NLS-1$ } newUrl = newUrl + CarbonServer32Utils.getWebContextRoot(getServer()) + "/carbon"; urls.add(newUrl); return urls.toArray(new String[] {}); } catch (Exception e) { Trace.trace(Trace.SEVERE, "Can't ping for server startup."); } return null; }
private void doBrowserPopup() { Boolean popupBrowser = CarbonServer32Utils.isServerStartBrowserPopup(getServer()); if (popupBrowser != null && popupBrowser) { CarbonUploadServiceRequestUtil uoloadServiceRequestUtil = CarbonUploadServiceRequestUtil.getInstance(); uoloadServiceRequestUtil.popupExternalBrowser( CommonOperations.getLocalServerPort(getServer()) + CarbonServer32Utils.getWebContextRoot(getServer()) + "/carbon"); } }