Top Description Fields Constructors Methods
org.jabref.logic.importer.util

public Class ShortDOIService

extends Object
Class Inheritance
Imports
java.io.IOException, java.net.MalformedURLException, .URI, .URISyntaxException, .URL, org.jabref.logic.importer.ParseException, org.jabref.logic.net.URLDownload, org.jabref.model.entry.identifier.DOI, kong.unirest.core.json.JSONException, kong.unirest.core.json.JSONObject, org.apache.hc.core5.net.URIBuilder

Class for obtaining shortened DOI names. See https://shortdoi.org.

Field Summary

Modifier and TypeField and Description
private static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public DOI

Returns:

A shortened DOI name
getShortDOI
(DOI
DOI
doi
)

Obtains shortened DOI name for given DOI

private kong.unirest.core.json.JSONObject
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BASIC_URLback to summary
private static final String BASIC_URL

Constructor Detail

ShortDOIServiceback to summary
public ShortDOIService()

Method Detail

getShortDOIback to summary
public DOI getShortDOI(DOI doi) throws ShortDOIServiceException

Obtains shortened DOI name for given DOI

Parameters
doi:DOI

DOI

Returns:DOI

A shortened DOI name

makeRequestback to summary
private kong.unirest.core.json.JSONObject makeRequest(DOI doi) throws ShortDOIServiceException