funcom-java-long / funcom_test /10576314.txt
mcmillco's picture
init
e789b06
raw
history blame
434 Bytes
TDAT: static protected String hostFromUriStr(String uriStr) {
debugOut("hostFromUriStr(\"" + uriStr + "\")");
String host = null;
URI uri;
try {
uri = new URI(uriStr);
host = uri.getHost();
} catch (URISyntaxException e) {
debugOut(e.getMessage());
}
return host;
}
COM: <s> extracts and returns the host portion of uri string </s>