gov.nasa.pds.harvest.registry
Class RegistryClient

java.lang.Object
  extended by gov.nasa.pds.harvest.registry.RegistryClient

public class RegistryClient
extends Object

Class that allows Harvest to talk to the Registry Service.

Author:
mcayanan

Constructor Summary
RegistryClient(String baseURI)
           
RegistryClient(String baseURI, String token)
           
 
Method Summary
 URI getBaseURI()
           
 String getToken()
           
 boolean hasProduct(String logicalID)
           
 boolean hasProduct(String logicalID, String version)
           
 boolean isRunning()
           
 com.sun.jersey.api.client.ClientResponse publishAssociation(gov.nasa.pds.registry.model.Association association)
           
 com.sun.jersey.api.client.ClientResponse publishProduct(gov.nasa.pds.registry.model.Product product)
           
 void setToken(String token)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegistryClient

public RegistryClient(String baseURI)
               throws URISyntaxException
Throws:
URISyntaxException

RegistryClient

public RegistryClient(String baseURI,
                      String token)
               throws URISyntaxException
Throws:
URISyntaxException
Method Detail

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.