|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.northwestern.at.utils.net.url.ParseURL
public class ParseURL
Utility methods for extracting portions of a URL.
Constructor Summary | |
---|---|
ParseURL()
|
Method Summary | |
---|---|
static java.lang.String |
getDirectory(java.lang.String urlString)
Get direcctory from URL. |
static java.lang.String |
getFile(java.lang.String urlString)
Get file from URL. |
static java.lang.String |
getHost(java.lang.String urlString)
Get host from URL string. |
static java.lang.String |
getProtocol(java.lang.String urlString)
Get protocol from URL string. |
static java.net.URL |
makeURL(java.lang.String urlString)
Create URL from a string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParseURL()
Method Detail |
---|
public static java.net.URL makeURL(java.lang.String urlString)
urlString
- URL string to parse.
public static java.lang.String getProtocol(java.lang.String urlString)
urlString
- URL string.
public static java.lang.String getHost(java.lang.String urlString)
urlString
- URL string.
public static java.lang.String getDirectory(java.lang.String urlString)
urlString
- URL string.
public static java.lang.String getFile(java.lang.String urlString)
urlString
- URL string.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |