Example usage for java.net URL toLowerCase

List of usage examples for java.net URL toLowerCase

Introduction

In this page you can find the example usage for java.net URL toLowerCase.

Prototype

static String toLowerCase(String protocol) 

Source Link

Document

Returns the protocol in lower case.

Usage

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));
    }
}