|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.net.UrlUtil
public class UrlUtil
Utility methods related to URLs, network connections, etc.
| Constructor Summary | |
|---|---|
UrlUtil()
|
|
| Method Summary | |
|---|---|
static String |
buildQueryString(Map<String,String> keyValuePairs)
Builds a query string from the provided key-value-pairs. |
static URL |
normalizeURL(URL url)
Normalizes a URL. |
static URL |
trimToDirectory(URL url)
Trims a URL to the directory it refers. |
static boolean |
urlsEqual(URL url1,
URL url2)
Checks whether two URLs are equal. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UrlUtil()
| Method Detail |
|---|
public static URL normalizeURL(URL url)
public static boolean urlsEqual(URL url1,
URL url2)
public static String buildQueryString(Map<String,String> keyValuePairs)
public static URL trimToDirectory(URL url)
MalformedURLException - If trimming the URL resulted in a malformed URL.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||