gov.nasa.pds.harvest.registry
Class RegistryClient
java.lang.Object
gov.nasa.pds.harvest.registry.RegistryClient
public class RegistryClient
- extends Object
Class that allows Harvest to talk to the Registry Service.
- Author:
- mcayanan
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RegistryClient
public RegistryClient(String baseURI)
throws URISyntaxException
- Throws:
URISyntaxException
RegistryClient
public RegistryClient(String baseURI,
String token)
throws URISyntaxException
- Throws:
URISyntaxException
isRunning
public boolean isRunning()
hasProduct
public boolean hasProduct(String logicalID)
throws URISyntaxException
- Throws:
URISyntaxException
hasProduct
public boolean hasProduct(String logicalID,
String version)
throws URISyntaxException
- Throws:
URISyntaxException
publishProduct
public com.sun.jersey.api.client.ClientResponse publishProduct(gov.nasa.pds.registry.model.Product product)
throws RegistryClientException,
URISyntaxException
- Throws:
RegistryClientException
URISyntaxException
publishAssociation
public com.sun.jersey.api.client.ClientResponse publishAssociation(gov.nasa.pds.registry.model.Association association)
getBaseURI
public URI getBaseURI()
getToken
public String getToken()
setToken
public void setToken(String token)
Copyright © 2005-2010 Planetary Data System. All Rights Reserved.