@Bindable(prefix="Bing3NewsDocumentSource") public class Bing3NewsDocumentSource extends Bing3DocumentSource
Bing3DocumentSourceBing3DocumentSource.AtomEntry, Bing3DocumentSource.AtomFeed, Bing3DocumentSource.ContentEntry, Bing3DocumentSource.EntryProperties, Bing3DocumentSource.ThumbnailMultipageSearchEngine.SearchEngineResponseCallable, MultipageSearchEngine.SearchMode, MultipageSearchEngine.SearchRange| Modifier and Type | Field and Description |
|---|---|
NewsCategory |
newsCategory
Specifies news category.
|
SortOrder |
sortOrder
Specifies the sort order of results.
|
adult, appid, latitude, longitude, market, MAX_CONCURRENT_THREADS, redirectStrategy, SYSPROP_BING3_APIsearchModecompressed, documents, POSTPROCESSING, query, results, resultsTotal, SERVICE, start, statistics| Constructor and Description |
|---|
Bing3NewsDocumentSource()
Initialize source type properly.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendSourceParams(ArrayList<org.apache.http.NameValuePair> params)
Append any source-specific parameters.
|
void |
process()
Process the query.
|
addIfNotEmpty, createFetcher, process, stringValuecollectDocuments, runQueryafterFetch, clean, urlEncodeafterProcessing, beforeProcessing, dispose, getContext, getSharedExecutor, initclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitafterProcessing, beforeProcessing, dispose, init@Processing @Input @Attribute @Label(value="Sort order") @Level(value=MEDIUM) @Group(value="Filtering") public SortOrder sortOrder
@Processing @Input @Attribute @Label(value="Category") @Level(value=BASIC) @Group(value="Filtering") public NewsCategory newsCategory
public Bing3NewsDocumentSource()
public void process()
throws ProcessingException
process in interface IProcessingComponentprocess in class Bing3DocumentSourceProcessingException - when processing failed. If thrown, the
IProcessingComponent.afterProcessing() method will be called and the component will
be ready to accept further requests or to be disposed of. Finally, the
exception will be rethrown from the controller method that caused the
component to perform processing.protected void appendSourceParams(ArrayList<org.apache.http.NameValuePair> params)
Bing3DocumentSourceappendSourceParams in class Bing3DocumentSource