|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.ucsb.nceas.metacat.MetacatURL
public class MetacatURL
| Constructor Summary | |
|---|---|
MetacatURL(java.lang.String url)
This constructor takes a string url and parses it according to the following rules. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getHashParam(java.lang.String paramname)
returns a single parameter from the hash by name |
java.util.Hashtable |
getHashParams()
Returns the parameters in a hashtable. |
java.lang.String[] |
getParam(int index)
Returns a single parameter and value as a 1D string array. |
java.lang.String[][] |
getParams()
Returns the parameters as a 2D string array. |
java.lang.String |
getProtocol()
Returns the type of the url. |
static void |
main(java.lang.String[] args)
Test method for this class. |
void |
printHashParams()
|
void |
printParams()
Prints the parameters neatly to system.out |
java.lang.String |
toString()
returns a string representation of this metacatURL |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MetacatURL(java.lang.String url)
throws java.net.MalformedURLException
url - the string to parse
java.net.MalformedURLException| Method Detail |
|---|
public java.lang.String getProtocol()
public java.lang.String[][] getParams()
public java.util.Hashtable getHashParams()
public java.lang.Object getHashParam(java.lang.String paramname)
paramname - the name of the parameter to return.public java.lang.String toString()
toString in class java.lang.Objectpublic void printHashParams()
public void printParams()
public java.lang.String[] getParam(int index)
index - the index of the parameter, value array that you want.public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||