org.openqa.selenium.net
Class Urls

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

public class Urls
extends java.lang.Object


Constructor Summary
Urls()
           
 
Method Summary
static java.lang.String toProtocolHostAndPort(java.lang.String url)
          Strips the specified URL so it only includes a protocal, hostname and port
static java.lang.String urlEncode(java.lang.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 java.lang.String toProtocolHostAndPort(java.lang.String url)
Strips the specified URL so it only includes a protocal, hostname and port

Throws:
java.net.MalformedURLException

urlEncode

public static java.lang.String urlEncode(java.lang.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 © 2011. All Rights Reserved.