| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final Map | |
| public static final String | |
| private final ImporterPreferences | |
| private static final Logger | |
| private static final FetcherRateLimiter |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private URL | |
| private Optional | |
| private Optional | |
| private Optional | |
| public String | getName()
Implements org. Returns the localized name of this fetcher. |
| public Parser | getParser()
Implements org. Returns the parser used to convert the response to a list of |
| public URLDownload | getUrlDownload(URL url)
Overrides default org. Constructs an |
| public URL | getURLForQuery(BaseQueryNode queryNode, int pageNumber)
Implements org. Constructs a URL based on the query, size and page number. |
| pack-priv URL | |
| private List | |
| public boolean | isValidKey(String apiKey)
Overrides default org. Returns whether the API key is valid |
| pack-priv boolean | |
| private EntryType | |
| private EntryType | |
| private BibEntry | |
| private BibEntry |
| API_URL | back to summary |
|---|---|
| private static final String API_URL | |
| ENTRY_TYPES_BY_CODE | back to summary |
|---|---|
| private static final Map<String, EntryType> ENTRY_TYPES_BY_CODE | |
| FETCHER_NAME | back to summary |
|---|---|
| public static final String FETCHER_NAME | |
| importerPreferences | back to summary |
|---|---|
| private final ImporterPreferences importerPreferences | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| RATE_LIMITER | back to summary |
|---|---|
| private static final FetcherRateLimiter RATE_LIMITER | |
| BaseSearchFetcher | back to summary |
|---|---|
| public BaseSearchFetcher(@NonNull ImporterPreferences importerPreferences) | |
| buildSearchUrl | back to summary |
|---|---|
| private URL buildSearchUrl(String query, int hits, int offset) throws URISyntaxException, MalformedURLException | |
| getDocs | back to summary |
|---|---|
| private Optional | |
| getFirstValue | back to summary |
|---|---|
| private Optional | |
| getJoinedValues | back to summary |
|---|---|
| private Optional | |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Doc from org. 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.
| |
| getParser | back to summary |
|---|---|
| public Parser getParser() Implements org. Doc from org. Returns the parser used to convert the response to a list of
| |
| getUrlDownload | back to summary |
|---|---|
| public URLDownload getUrlDownload(URL url) Overrides default org. Doc from org. Constructs an
| |
| getURLForQuery | back to summary |
|---|---|
| public URL getURLForQuery(BaseQueryNode queryNode, int pageNumber) throws URISyntaxException, MalformedURLException Implements org. Doc from org. Constructs a URL based on the query, size and page number.
| |
| getValidationUrl | back to summary |
|---|---|
| pack-priv URL getValidationUrl(String apiKey) throws URISyntaxException, MalformedURLException | |
| getValues | back to summary |
|---|---|
| private List | |
| isValidKey | back to summary |
|---|---|
| public boolean isValidKey(String apiKey) Overrides default org. Doc from org. Returns whether the API key is valid
| |
| isValidKeyResponse | back to summary |
|---|---|
| pack-priv boolean isValidKeyResponse(String response) | |
| mapEntryType | back to summary |
|---|---|
| private EntryType mapEntryType(kong. | |
| mapEntryType | back to summary |
|---|---|
| private EntryType mapEntryType(String code) | |
| parseEntry | back to summary |
|---|---|
| private BibEntry parseEntry(kong. | |
| withFieldIfPresent | back to summary |
|---|---|
| private BibEntry withFieldIfPresent(BibEntry entry, Field field, Optional<String> value) | |