List of usage examples for java.net URL toLowerCase
static String toLowerCase(String protocol)
From source file:com.microsoft.aad.adal.Discovery.java
/** * add this host as valid to skip another query to server. * /* ww w .j a v a 2 s . c om*/ * @param validhost */ private void addValidHostToList(URL validhost) { String validHost = validhost.getHost(); if (!StringExtensions.IsNullOrBlank(validHost)) { // for comparisons it uses Locale.US, so it needs to be same // here sValidHosts.add(validHost.toLowerCase(Locale.US)); } }