Class DataCiteRestConnector


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

      Modifier and Type Method Description
      boolean checkIfPrefixIsRegisteredForDataCenterId()  
      java.lang.String generateNewDOI​(int year)
      Generate a new DOI by counting current DOI
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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()