|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectopendap.crawler.ParsedURL
public class ParsedURL
Given a URL passed to the constructor, parse the URL and provide access to its various parts. This class will break out the machine, path and leaf components of the URL. This also holds a copy of the entire URL's original text, so that references to instances can get both components and the real thing.
Constructor Summary | |
---|---|
ParsedURL(java.lang.String url)
A URL is parsed by first removing the protocol and '://' parts, then the machine part. |
Method Summary | ||
---|---|---|
static
|
concat_java5(T[] a,
T[] b)
A version of concat that does not require Java 6 |
|
static
|
concat(T[] first,
T[] second)
Concatenate two arrays of the same type and return the result in an array. |
|
java.lang.String[] |
getComponents()
|
|
java.lang.String |
getMachine()
|
|
java.lang.String |
getTheURL()
|
|
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParsedURL(java.lang.String url) throws java.lang.Exception
url
- The URL to parse.
java.lang.Exception
Method Detail |
---|
public static void main(java.lang.String[] args)
public java.lang.String getMachine()
public java.lang.String[] getComponents()
public java.lang.String getTheURL()
public static <T> T[] concat(T[] first, T[] second)
T
- first
- The first arraysecond
- The second array
public static <T> T[] concat_java5(T[] a, T[] b)
T
- a
- b
-
concat
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |