Example usage for com.google.gwt.core.shared.impl StringCase toLower

List of usage examples for com.google.gwt.core.shared.impl StringCase toLower

Introduction

In this page you can find the example usage for com.google.gwt.core.shared.impl StringCase toLower.

Prototype

public static String toLower(String string) 

Source Link

Usage

From source file:com.google.web.bindery.requestfactory.vm.testing.UrlRequestTransport.java

License:Apache License

/**
 * Construct a new UrlRequestTransport.//from w  ww. jav  a2  s .  c  o  m
 * 
 * @param url the URL to connect to
 * @throws IllegalArgumentException if the url's protocol is not {@code http}
 *           or {@code https}
 */
public UrlRequestTransport(URL url) {
    this.url = url;
    String proto = StringCase.toLower(url.getProtocol());
    if (!proto.equals("http") && !proto.equals("https")) {
        throw new IllegalArgumentException("Only http and https URLs supported");
    }
}