Searched refs:hostPortString (Results 1 – 1 of 1) sorted by relevance
167 public static HostAndPort fromString(String hostPortString) { in fromString() argument168 checkNotNull(hostPortString); in fromString()173 if (hostPortString.startsWith("[")) { in fromString()174 String[] hostAndPort = getHostAndPortFromBracketedHost(hostPortString); in fromString()178 int colonPos = hostPortString.indexOf(':'); in fromString()179 if (colonPos >= 0 && hostPortString.indexOf(':', colonPos + 1) == -1) { in fromString()181 host = hostPortString.substring(0, colonPos); in fromString()182 portString = hostPortString.substring(colonPos + 1); in fromString()185 host = hostPortString; in fromString()194 checkArgument(!portString.startsWith("+"), "Unparseable port number: %s", hostPortString); in fromString()[all …]