public class DataCiteMDSConnector extends Object
DataCiteMDSConnector provides the interface between the DataCite
Rest-API and eDAL.| Constructor and Description |
|---|
DataCiteMDSConnector(EdalConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
com.sun.jersey.api.client.ClientResponse |
getDOI(String doi)
Request the URL for the given DOI.
|
com.sun.jersey.api.client.ClientResponse |
getMetadata(String doi)
Request the meta data for the given DOI.
|
int |
getNextFreeDOI(int year,
int startDoi,
String datacentre) |
com.sun.jersey.api.client.ClientResponse |
postDOI(String doi,
String url)
Post a new DOI to DataCite.
|
com.sun.jersey.api.client.ClientResponse |
postMetadata(Document xml)
Post a new meta data set for a DOI.
|
public DataCiteMDSConnector(EdalConfiguration configuration) throws EdalException
EdalExceptionpublic com.sun.jersey.api.client.ClientResponse getDOI(String doi)
doi - the requested DOIClientResponse object.public com.sun.jersey.api.client.ClientResponse getMetadata(String doi)
doi - the requested DOIClientResponse object.public com.sun.jersey.api.client.ClientResponse postDOI(String doi, String url) throws DataCiteException
doi - the new DOI.url - the corresponding URL for the new DOiClientResponse object.DataCiteException - if ClientResponse is not a good response.public com.sun.jersey.api.client.ClientResponse postMetadata(Document xml) throws DataCiteException
xml - a XML-Document object.ClientResponse object.DataCiteException - if ClientResponse is not a good response.public int getNextFreeDOI(int year,
int startDoi,
String datacentre)
Copyright © 2015 Leibniz Institute of Plant Genetics and Crop Plant Research (IPK). All rights reserved.