@Bindable(prefix="PubMedDocumentSource") public class PubMedDocumentSource extends SimpleSearchEngine
Modifier and Type | Field and Description |
---|---|
static String |
E_FETCH_URL
PubMed fetch service URL
|
static String |
E_SEARCH_URL
PubMed search service URL
|
int |
maxResults
Maximum results to fetch.
|
static int |
PUBMED_TIMEOUT
HTTP timeout for pubmed services.
|
HttpRedirectStrategy |
redirectStrategy
HTTP redirect response strategy (follow or throw an error).
|
String |
toolName
Tool name, if registered.
|
compressed, documents, POSTPROCESSING, query, results, resultsTotal, SERVICE, start, statistics
Constructor and Description |
---|
PubMedDocumentSource() |
Modifier and Type | Method and Description |
---|---|
protected void |
afterFetch(SearchEngineResponse response)
Called after a single search engine response has been fetched.
|
protected SearchEngineResponse |
fetchSearchResponse()
Requests and returns results from the underlying search engine.
|
process
clean, urlEncode
afterProcessing, beforeProcessing, dispose, getContext, getSharedExecutor, init
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
afterProcessing, beforeProcessing, dispose, init
public static final String E_SEARCH_URL
public static final String E_FETCH_URL
public static final int PUBMED_TIMEOUT
@Input @Attribute @Label(value="EUtils Registered Tool Name") @Level(value=ADVANCED) @Group(value="Search query") public String toolName
@Processing @Input @Attribute @IntRange(min=1) @Internal(configuration=true) @Label(value="Maximum results") @Level(value=ADVANCED) @Group(value="Search query") public int maxResults
@Input @Processing @Attribute @Label(value="HTTP redirect strategy") @Level(value=MEDIUM) @Group(value="Service") @Internal public HttpRedirectStrategy redirectStrategy
protected SearchEngineResponse fetchSearchResponse() throws Exception
SimpleSearchEngine
fetchSearchResponse
in class SimpleSearchEngine
Exception
- in case of problems with the underlying search engineprotected void afterFetch(SearchEngineResponse response)
SearchEngineBase
afterFetch
in class SearchEngineBase