Class DataCiteRestConnector


  • public class DataCiteRestConnector
    extends java.lang.Object
    Connector to the REST-API to search for DOIs.
    • Method Detail

      • generateNewDOI

        public java.lang.String generateNewDOI​(int year)
                                        throws DataCiteException
        Generate a new DOI by counting current DOI
        Parameters:
        year - the current year.
        Returns:
        the new DOI
        Throws:
        DataCiteException - if unable to generate new DOI.
      • checkIfPrefixIsRegisteredForDataCenterId

        public boolean checkIfPrefixIsRegisteredForDataCenterId()