int i = s.indexOf(":"); if (i != -1) { servHost = s.substring(0, i); servPort = s.substring(i+1);  return true;
String[] substrings = s.split(": if(substrings.length >= 2) { servProt = substrings[0]; String hostAndPort = substrings[1]; int i = hostAndPort.indexOf(":"); if (i != -1) { servHost = hostAndPort.substring(0, i); servPort = hostAndPort.substring(i+1); System.out.println("getOrgHostAndPort url = " + getURLString()); return true; }
    public boolean getOrgHostAndPort() {	String msg = "Enter cluster Log Plan Server location as host:port";	String s = ConnectionHelper.getClusterHostPort(null,msg,servHost,servPort);	if ((s == null) || (s.trim().equals(""))) {	    displayErrorString("Entered Nothing. Cannot get connection.");	    return false;	}	s = s.trim();	if (s.length() != 0) {	    int i = s.indexOf(":");	    if (i != -1) {		servHost = s.substring(0, i);		servPort = s.substring(i+1);		return true;	    }	}	displayErrorString("Improper Format for url.  Cannot get connection.");	return false;    }