Currently only used for storing an "API key" to be able to cope with URLs appearing at web server answers such as Paper or abstract available at https://api.unpaywall.org/v2/10.47397/tb/44-3/tb138kopp-jabref?email=<INSERT_YOUR_EMAIL>
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| private final ImporterPreferences | |
| private static final Logger | |
| private final ObjectMapper | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Optional | |
| public @NonNull String | getName()
Implements org. Returns the localized name of this fetcher. |
| public TrustLevel | getTrustLevel()
Implements org. Returns the level of trust for this fetcher. |
| private static @NonNull String | |
| public boolean | isValidKey(String apiKey)
Overrides default org. Returns whether the API key is valid |
| public List | performSearch(BaseQueryNode queryList)
Implements org. This method is used to send complex queries using fielded search. |
| 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 | |
| mapper | back to summary |
|---|---|
| private final ObjectMapper mapper | |
| URL_PATTERN | back to summary |
|---|---|
| private static final String URL_PATTERN | |
| UnpaywallFetcher | back to summary |
|---|---|
| public UnpaywallFetcher(ImporterPreferences importerPreferences) | |
| findFullText | back to summary |
|---|---|
public Optional
| |
| getName | back to summary |
|---|---|
| public @NonNull 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.
| |
| getTrustLevel | back to summary |
|---|---|
| public TrustLevel getTrustLevel() Implements org. Doc from org. Returns the level of trust for this fetcher. We distinguish between publishers and meta search engines for example.
| |
| getUrl | back to summary |
|---|---|
| private static @NonNull String getUrl(String doi, String email) | |
| isValidKey | back to summary |
|---|---|
| public boolean isValidKey(String apiKey) Overrides default org. Doc from org. Returns whether the API key is valid
| |
| performSearch | back to summary |
|---|---|
| public List Implements org. Doc from org. This method is used to send complex queries using fielded search.
| |