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

public Class ACMPortalFetcher

extends Object
implements SearchBasedParserFetcher
Class Inheritance
All Implemented Interfaces
org.jabref.logic.importer.SearchBasedParserFetcher, org.jabref.logic.importer.ParserFetcher, org.jabref.logic.importer.SearchBasedFetcher, org.jabref.logic.importer.WebFetcher
Imports
java.net.CookieHandler, .CookieManager, .MalformedURLException, .URISyntaxException, .URL, java.util.Optional, org.jabref.logic.help.HelpFile, org.jabref.logic.importer.Parser, .SearchBasedParserFetcher, org.jabref.logic.importer.fetcher.transformers.DefaultQueryTransformer, org.jabref.logic.importer.fileformat.ACMPortalParser, org.jabref.model.search.query.BaseQueryNode, org.apache.hc.core5.net.URIBuilder

Field Summary

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static URL
buildSearchURL(String query)

Builds the ACM search URL, sending the given query as the AllField parameter.

private static String
public Optional<HelpFile>
getHelpPage()

Overrides default org.jabref.logic.importer.WebFetcher.getHelpPage.

Returns the help page for this fetcher.

public String
getName()

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

Returns the localized name of this fetcher.

public Parser

Returns:

the parser which can process the results returned from the ACM Portal search page
getParser
()

Implements org.jabref.logic.importer.SearchBasedParserFetcher.getParser.

Gets an instance of ACMPortalParser.

public URL

Returns:

query URL
getURLForQuery
(BaseQueryNode
the first query node
queryNode
)

Implements org.jabref.logic.importer.SearchBasedParserFetcher.getURLForQuery.

Constructing the url for the searchpage.

public URL
getURLForRawQuery(String rawQuery)

Overrides default org.jabref.logic.importer.SearchBasedParserFetcher.getURLForRawQuery.

Builds the ACM search URL for a raw, catalog-native query, sent verbatim as the AllField parameter.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

FETCHER_NAMEback to summary
public static final String FETCHER_NAME
SEARCH_URLback to summary
private static final String SEARCH_URL

Constructor Detail

ACMPortalFetcherback to summary
public ACMPortalFetcher()

Method Detail

buildSearchURLback to summary
private static URL buildSearchURL(String query) throws URISyntaxException, MalformedURLException

Builds the ACM search URL, sending the given query as the AllField parameter.

createQueryStringback to summary
private static String createQueryString(BaseQueryNode queryNode)
getHelpPageback to summary
public Optional<HelpFile> getHelpPage()

Overrides default org.jabref.logic.importer.WebFetcher.getHelpPage.

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

Returns the help page for this fetcher.

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
getParserback to summary
public Parser getParser()

Implements org.jabref.logic.importer.SearchBasedParserFetcher.getParser.

Gets an instance of ACMPortalParser.

Returns:Parser

the parser which can process the results returned from the ACM Portal search page

Annotations
@Override
getURLForQueryback to summary
public URL getURLForQuery(BaseQueryNode queryNode) throws URISyntaxException, MalformedURLException

Implements org.jabref.logic.importer.SearchBasedParserFetcher.getURLForQuery.

Constructing the url for the searchpage.

Parameters
queryNode:BaseQueryNode

the first query node

Returns:URL

query URL

Annotations
@Override
getURLForRawQueryback to summary
public URL getURLForRawQuery(String rawQuery) throws URISyntaxException, MalformedURLException

Overrides default org.jabref.logic.importer.SearchBasedParserFetcher.getURLForRawQuery.

Builds the ACM search URL for a raw, catalog-native query, sent verbatim as the AllField parameter.

Annotations
@Override