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.FetcherException, .Parser, .SearchBasedParserFetcher, org.jabref.logic.importer.fetcher.transformers.DefaultQueryTransformer, org.jabref.logic.importer.fileformat.ACMPortalParser, org.apache.hc.core5.net.URIBuilder, org.apache.lucene.queryparser.flexible.core.nodes.QueryNode

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 String
createQueryString(org.apache.lucene.queryparser.flexible.core.nodes.QueryNode query)

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
(org.apache.lucene.queryparser.flexible.core.nodes.QueryNode
query node
query
)

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

Constructing the url for the searchpage.

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

createQueryStringback to summary
private static String createQueryString(org.apache.lucene.queryparser.flexible.core.nodes.QueryNode query)
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.

Returns:Optional<HelpFile>

the HelpFile enum constant for the help page

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.

Returns:String

the localized name

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(org.apache.lucene.queryparser.flexible.core.nodes.QueryNode query) throws URISyntaxException, MalformedURLException, FetcherException

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

Constructing the url for the searchpage.

Parameters
query:org.apache.lucene.queryparser.flexible.core.nodes.QueryNode

query node

Returns:URL

query URL

Annotations
@Override