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

public Class ApsFetcher

extends Object
implements FulltextFetcher
Class Inheritance
All Implemented Interfaces
org.jabref.logic.importer.FulltextFetcher
Imports
java.io.IOException, java.net.MalformedURLException, .URL, .URLConnection, java.util.Optional, org.jabref.logic.importer.FulltextFetcher, org.jabref.logic.util.URLUtil, org.jabref.model.entry.BibEntry, org.jabref.model.entry.field.StandardField, org.jabref.model.entry.identifier.DOI, kong.unirest.core.Unirest, org.jspecify.annotations.NonNull, org.slf4j.Logger, .LoggerFactory

FulltextFetcher implementation that attempts to find a PDF URL at APS. Also see the API, although it isn't currently used.

Field Summary

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Optional<URL>
private Optional<String>

Returns:

A DOI cased as APS likes it
getId
(String
A case insensitive DOI
doi
)

Convert a DOI into an appropriate APS id.

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

DOI_URLback to summary
private static final String DOI_URL
LOGGERback to summary
private static final Logger LOGGER
PDF_URLback to summary
private static final String PDF_URL

Constructor Detail

ApsFetcherback to summary
public ApsFetcher()

Method Detail

findFullTextback to summary
public Optional<URL> findFullText(@NonNull BibEntry entry) throws IOException
Annotations
@Override
getIdback to summary
private Optional<String> getId(String doi)

Convert a DOI into an appropriate APS id.

Parameters
doi:String

A case insensitive DOI

Returns:Optional<String>

A DOI cased as APS likes it

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