|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.harvest.pdap.registry.client.PsaRegistryClient
public class PsaRegistryClient
Client to the PSA Registry.
Constructor Summary | |
---|---|
PsaRegistryClient(String baseUrl)
Constructor. |
Method Summary | |
---|---|
List<uk.ac.starlink.table.StarTable> |
getAllDataSets()
Gets all the datasets. |
gov.nasa.pds.tools.label.Label |
getCatalogFile(String datasetId,
String filename)
Gets the catalog file from the PSA Registry. |
uk.ac.starlink.table.StarTable |
getDataSet(String datasetId)
Gets a single dataset in VOTable format. |
URL |
getResourceLink(String datasetId)
Gets the resource link associated with the given dataset identifier. |
gov.nasa.pds.tools.label.Label |
getVoldescFile(String datasetId)
Gets the VOLDESC.CAT file. |
static void |
main(String[] args)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PsaRegistryClient(String baseUrl)
baseUrl
- The base url of the registry.Method Detail |
---|
public List<uk.ac.starlink.table.StarTable> getAllDataSets() throws PdapRegistryClientException
getAllDataSets
in interface PdapRegistryClient
PdapRegistryClientException
public uk.ac.starlink.table.StarTable getDataSet(String datasetId) throws PdapRegistryClientException
getDataSet
in interface PdapRegistryClient
datasetId
- The identifier of the dataset to get.
PdapRegistryClientException
- If an error occurred while connecting
to the PSA.public URL getResourceLink(String datasetId) throws PdapRegistryClientException
getResourceLink
in interface PdapRegistryClient
datasetId
- The dataset identifier.
PdapRegistryClientException
- If an error occurred while getting
the resource link.public gov.nasa.pds.tools.label.Label getCatalogFile(String datasetId, String filename) throws PdapRegistryClientException
getCatalogFile
in interface PdapRegistryClient
datasetId
- The dataset identifier.filename
- The catalog filename.
PdapRegistryClientException
- If an error occurred while getting
the catalog file.public gov.nasa.pds.tools.label.Label getVoldescFile(String datasetId) throws PdapRegistryClientException
getVoldescFile
in interface PdapRegistryClient
datasetId
- The dataset identifier.
PdapRegistryClientException
- If an error occurred while getting
the VOLDESC.CAT file.public static void main(String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |