grace.util
Class Registry
java.lang.Object
|
+--grace.util.Registry
- public class Registry
- extends java.lang.Object
Method Summary |
static java.lang.String |
getURLFile(java.lang.String url)
This utility function simply parses and returns the file
portion (also called "the name") of the given url. |
static java.lang.String |
getURLHost(java.lang.String url)
This utility function simply parses and returns the hostname
portion of the given url. |
static java.lang.String[] |
lookup(java.lang.String regularExpressionURL)
This utility function searches for matches to a URL of the
form: "rmi://hostname/regexp". |
static void |
main(java.lang.String[] args)
Simple test function |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Registry
public Registry()
getURLFile
public static java.lang.String getURLFile(java.lang.String url)
throws java.net.MalformedURLException
- This utility function simply parses and returns the file
portion (also called "the name") of the given url. This is
like the java.net.URL.getFile() function but since Sun didn't
handle the "rmi:" protocol, it has to be done here.
getURLHost
public static java.lang.String getURLHost(java.lang.String url)
throws java.net.MalformedURLException
- This utility function simply parses and returns the hostname
portion of the given url. This is like the
java.net.URL.getHost() function but since Sun didn't handle the
"rmi:" protocol, it has to be done here.
lookup
public static java.lang.String[] lookup(java.lang.String regularExpressionURL)
throws gnu.regexp.REException,
java.rmi.RemoteException,
java.rmi.UnknownHostException,
java.net.MalformedURLException
- This utility function searches for matches to a URL of the
form: "rmi://hostname/regexp". This means that a list the
names matching 'regexp' on the rmi registry localed at hostname
will be returned. This uses getURLFile to determine the
regular expression part and getURLHost to find the hostname of
the registry.
- See Also:
getURLFile()
,
getURLHost()
main
public static void main(java.lang.String[] args)
- Simple test function