public class Urls extends Object
Constructor and Description |
---|
Urls() |
Modifier and Type | Method and Description |
---|---|
static String |
toProtocolHostAndPort(String url)
Strips the specified URL so it only includes a protocol, hostname and port
|
static String |
urlEncode(String value)
Encodes the text as an URL using UTF-8.
|
public static String toProtocolHostAndPort(String url)
url
- URLpublic static String urlEncode(String value)
value
- the text too encodeURLEncoder.encode(java.lang.String, java.lang.String)
Copyright © 2015. All rights reserved.