Verified Owner
Top Description Fields Constructors Methods
org.jabref.logic.importer.fetcher

public Class SpringerNatureFullTextFetcher

extends Object
implements FulltextFetcher, CustomizableKeyFetcher
Class Inheritance
All Implemented Interfaces
org.jabref.logic.importer.fetcher.CustomizableKeyFetcher, org.jabref.logic.importer.WebFetcher, org.jabref.logic.importer.FulltextFetcher
Imports
java.io.IOException, java.net.URI, .URISyntaxException, .URL, java.util.Optional, org.jabref.logic.importer.FulltextFetcher, .ImporterPreferences, org.jabref.model.entry.BibEntry, org.jabref.model.entry.field.StandardField, org.jabref.model.entry.identifier.DOI, kong.unirest.core.HttpResponse, kong.unirest.core.JsonNode, kong.unirest.core.Unirest, kong.unirest.core.UnirestException, kong.unirest.core.json.JSONObject, org.jspecify.annotations.NonNull, org.slf4j.Logger, .LoggerFactory

FulltextFetcher implementation that attempts to find a PDF URL at SpringerLink.

Uses Springer API, see https://dev.springer.com

Field Summary

Modifier and TypeField and Description
private static final String
private static final String
public static final String
private final ImporterPreferences
private static final Logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Optional<URL>
public String
getName()

Implements org.jabref.logic.importer.WebFetcher.getName.

Returns the localized name of this fetcher.

public TrustLevel
getTrustLevel()

Implements org.jabref.logic.importer.FulltextFetcher.getTrustLevel.

Returns the level of trust for this fetcher.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

API_URLback to summary
private static final String API_URL
CONTENT_HOSTback to summary
private static final String CONTENT_HOST
FETCHER_NAMEback to summary
public static final String FETCHER_NAME
importerPreferencesback to summary
private final ImporterPreferences importerPreferences
LOGGERback to summary
private static final Logger LOGGER

Constructor Detail

SpringerNatureFullTextFetcherback to summary
public SpringerNatureFullTextFetcher(ImporterPreferences importerPreferences)

Method Detail

findFullTextback to summary
public Optional<URL> findFullText(@NonNull BibEntry entry) throws IOException
Annotations
@Override
getNameback to summary
public String getName()

Implements org.jabref.logic.importer.WebFetcher.getName.

Doc from org.jabref.logic.importer.WebFetcher.getName.

Returns the localized name of this fetcher. The title can be used to display the fetcher in the menu and in the side pane.

Todo

This name is also used for identifying the fetcher in preferences for API keys. Thus, any switch of the language will "remove" API keys.

Annotations
@Override
getTrustLevelback to summary
public TrustLevel getTrustLevel()

Implements org.jabref.logic.importer.FulltextFetcher.getTrustLevel.

Doc from org.jabref.logic.importer.FulltextFetcher.getTrustLevel.

Returns the level of trust for this fetcher. We distinguish between publishers and meta search engines for example.

Annotations
@Override