public class DataCiteMDSConnector
extends java.lang.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(java.lang.String doi)
Request the URL for the given DOI.
|
com.sun.jersey.api.client.ClientResponse |
getMetadata(java.lang.String doi)
Request the meta data for the given DOI.
|
int |
getNextFreeDOI(int year,
int startDoi,
java.lang.String datacentre) |
com.sun.jersey.api.client.ClientResponse |
postDOI(java.lang.String doi,
java.lang.String url)
Post a new DOI to DataCite.
|
com.sun.jersey.api.client.ClientResponse |
postMetadata(org.w3c.dom.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(java.lang.String doi)
doi - the requested DOIClientResponse object.public com.sun.jersey.api.client.ClientResponse getMetadata(java.lang.String doi)
doi - the requested DOIClientResponse object.public com.sun.jersey.api.client.ClientResponse postDOI(java.lang.String doi,
java.lang.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(org.w3c.dom.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,
java.lang.String datacentre)