List of usage examples for com.google.gwt.core.shared.impl StringCase toLower
public static String toLower(String string)
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"); } }