|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.astrogrid.store.Ivorn
International Virtual Observatory Resource Name. Used to name specific IVO resources.
They act as keys to VO Registries; give the registry an IVORN and it will return the associated VOResource document
Ivorns are of the form:
ivo://something/anything/athing/etc#somethingwithmeaningtothiscontextFor example:
ivo://roe.ac.uk/storee#path/to/file.extmight resolve to an FTP server, on which the path 'path/to/file.ext' would locate a document.
Ivorns are immutable - ie once created, they cannot be changed. You can make new ones out of old ones.
This is a badly named package. IVORNs can be used for things other than stores...
| Field Summary | |
static java.lang.String |
SCHEME
|
| Constructor Summary | |
Ivorn(java.lang.String ivorn)
Construct from given string |
|
Ivorn(java.lang.String aPath,
java.lang.String aFragment)
Construct from 'path' and fragment; path consists of anAuthority and a key, eg 'roe.ac.uk/myspace'. |
|
Ivorn(java.lang.String anAuthority,
java.lang.String aKey,
java.lang.String aFragment)
Construct from given authority, key and fragment |
|
| Method Summary | |
java.lang.String |
getFragment()
Returns specific-to-service - ie fragment |
java.lang.String |
getPath()
Returns ivo id without the scheme. |
java.lang.String |
getScheme()
Returns identifier scheme |
static boolean |
isIvorn(java.lang.String aString)
Returns true if the given string is likely to be an ivorn - ie if it starts with ivo:// |
java.lang.String |
toRegistryString()
Representation to be used when submitting the IVORN to a registry to be resolved |
java.lang.String |
toString()
String representation |
java.net.URI |
toUri()
Returns the IVORN in URI form |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String SCHEME
| Constructor Detail |
public Ivorn(java.lang.String ivorn)
throws java.net.URISyntaxException
public Ivorn(java.lang.String anAuthority,
java.lang.String aKey,
java.lang.String aFragment)
public Ivorn(java.lang.String aPath,
java.lang.String aFragment)
| Method Detail |
public java.lang.String getScheme()
public java.lang.String getPath()
public java.lang.String getFragment()
public java.lang.String toString()
public java.net.URI toUri()
public java.lang.String toRegistryString()
public static boolean isIvorn(java.lang.String aString)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||