org.openqa.selenium.net
Class Urls

java.lang.Object
  extended by org.openqa.selenium.net.Urls

public class Urls
extends Object


Constructor Summary
Urls()
           
 
Method Summary
static String toProtocolHostAndPort(String url)
          Strips the specified URL so it only includes a protocal, hostname and port
static String urlEncode(String value)
          Encodes the text as an URL using UTF-8.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Urls

public Urls()
Method Detail

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 © 2012. All Rights Reserved.