public static String getHost(String url) {
		try {
			if (!url.startsWith("http")) {
				url = "http://" + url;
			}
			return StringUtils.trim(new URL(url).getHost());
		} catch (MalformedURLException e) {
			return "";
		}
	}
Get the host part from the given url.

@param url	url
@return host name
ngrinder-core/src/main/java/org/ngrinder/common/util/UrlUtils.java