public class URLUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getHostnameFromURL(String string)
Get the host part from a URL
|
static String |
rewritePath(String inputUrl,
String string)
Rewrites the path part of a URL adding and extra String to it
|
static String |
sanitizeURL(String url)
The client uses the mqtt://{host} url format so it's the same as the C client.
|
public static String sanitizeURL(String url)
url - the URL to sanitizepublic static String getHostnameFromURL(String string)
string - the URL (ie.: http://hostname:port)public static String rewritePath(String inputUrl, String string)
inputUrl - the input URL (ie.: amqp://hostname:port/queue)string - the string to add to the path partThis documentation was released into the public domain.