|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.abstracthorizon.extend.server.support.URLUtils
public class URLUtils
Class with utility methods for URLs.
| Constructor Summary | |
|---|---|
URLUtils()
|
|
| Method Summary | |
|---|---|
static URI |
add(URI uri,
String file)
Adds given file to the file portion of supplied url |
static URL |
add(URL url,
String file)
Adds given file to the file portion of supplied url |
static String |
addPaths(String p1,
String p2)
|
static boolean |
exists(URI uri)
Retruns true if a file or directory (or any content) exists at given URL. |
static boolean |
exists(URL url)
Retruns true if a file or directory (or any content) exists at given URL. |
static boolean |
isFolder(URI url)
Checks if given URI represents folder or file. |
static boolean |
isFolder(URL url)
Checks if given url represents folder or file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public URLUtils()
| Method Detail |
|---|
public static URL add(URL url,
String file)
throws MalformedURLException
url - urlfile - string to be added to the end of file part of given url
MalformedURLException
public static URI add(URI uri,
String file)
throws URISyntaxException
uri - URIfile - string to be added to the end of file part of given url
MalformedURLException
URISyntaxExceptionpublic static boolean exists(URL url)
URL.openStream() method
is used.
url -
true if content existspublic static boolean exists(URI uri)
URL.openStream() method
is used.
uri -
true if content existspublic static boolean isFolder(URL url)
url - url
true if it is a folderpublic static boolean isFolder(URI url)
url - URI
true if it is a folder
public static String addPaths(String p1,
String p2)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||