public class UrlUtilities
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
UTF8 |
| Constructor and Description |
|---|
UrlUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static java.net.URL |
buildPostUrl(java.lang.String host,
int port,
java.lang.String path) |
static java.net.URL |
buildUrl(java.lang.String host,
int port,
java.lang.String path,
java.util.Map<java.lang.String,java.lang.String> parameters)
Build a request URL.
|
static java.lang.String |
createBuddyIconUrl(int iconFarm,
int iconServer,
java.lang.String id)
Construct the BuddyIconUrl.
|
public static final java.lang.String UTF8
public static java.net.URL buildUrl(java.lang.String host,
int port,
java.lang.String path,
java.util.Map<java.lang.String,java.lang.String> parameters)
throws java.net.MalformedURLException
host - The hostport - The portpath - The pathparameters - The parametersjava.net.MalformedURLExceptionpublic static java.net.URL buildPostUrl(java.lang.String host,
int port,
java.lang.String path)
throws java.net.MalformedURLException
java.net.MalformedURLExceptionpublic static java.lang.String createBuddyIconUrl(int iconFarm,
int iconServer,
java.lang.String id)
If none available, return the default, or an URL assembled from farm, iconserver and nsid.
iconFarm - iconServer - id -