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

public Class JournalInformationFetcher

extends Object
implements WebFetcher
Class Inheritance
All Implemented Interfaces
org.jabref.logic.importer.WebFetcher
Imports
java.util.ArrayList, .Comparator, .HashSet, .List, .Optional, .Set, java.util.regex.Pattern, javafx.util.Pair, org.jabref.logic.importer.FetcherException, .WebFetcher, org.jabref.logic.journals.JournalInformation, org.jabref.logic.l10n.Localization, org.jabref.model.entry.identifier.ISSN, kong.unirest.core.HttpResponse, kong.unirest.core.JsonNode, kong.unirest.core.Unirest, kong.unirest.core.json.JSONArray, kong.unirest.core.json.JSONException, kong.unirest.core.json.JSONObject, org.slf4j.Logger, .LoggerFactory

Fetches journal information from the JabRef Web API

Field Summary

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private kong.unirest.core.json.JSONObject
buildPostData(String issn, String journalName)

private static String
getConcatenatedString(kong.unirest.core.json.JSONObject jsonObject, String key)

public Optional<JournalInformation>
getJournalInformation(String issnString, String journalName)

public String
getName()

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

Returns the localized name of this fetcher.

private List<Pair<Integer, Double>>
parseCitationInfo(kong.unirest.core.json.JSONArray jsonArray, String key)

private JournalInformation
parseResponse(kong.unirest.core.json.JSONObject responseJsonObject)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

API_URLback to summary
private static final String API_URL
LOGGERback to summary
private static final Logger LOGGER
NAMEback to summary
public static final String NAME
QUOTES_BRACKET_PATTERNback to summary
private static final Pattern QUOTES_BRACKET_PATTERN

Constructor Detail

JournalInformationFetcherback to summary
public JournalInformationFetcher()

Method Detail

buildPostDataback to summary
private kong.unirest.core.json.JSONObject buildPostData(String issn, String journalName)
getConcatenatedStringback to summary
private static String getConcatenatedString(kong.unirest.core.json.JSONObject jsonObject, String key)
getJournalInformationback to summary
public Optional<JournalInformation> getJournalInformation(String issnString, String journalName) throws FetcherException
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.

Returns:String

the localized name

Annotations
@Override
parseCitationInfoback to summary
private List<Pair<Integer, Double>> parseCitationInfo(kong.unirest.core.json.JSONArray jsonArray, String key)
parseResponseback to summary
private JournalInformation parseResponse(kong.unirest.core.json.JSONObject responseJsonObject) throws FetcherException