org.openqa.selenium.net
Class Urls
java.lang.Object
org.openqa.selenium.net.Urls
public class Urls
- extends Object
Constructor Summary |
Urls()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Urls
public Urls()
toProtocolHostAndPort
public static String toProtocolHostAndPort(String url)
- Strips the specified URL so it only includes a protocal, hostname and port
- Throws:
MalformedURLException
urlEncode
public static String urlEncode(String value)
- Encodes the text as an URL using UTF-8.
- Parameters:
value
- the text too encode
- Returns:
- the encoded URI string
- See Also:
URLEncoder.encode(java.lang.String, java.lang.String)
Copyright © 2013. All Rights Reserved.