bing.requests
Class BingNewsRequest
java.lang.Object
bing.requests.BingRequest
bing.requests.BingNewsRequest
public class BingNewsRequest
- extends BingRequest
Request object to be used when requesting news results.
Methods inherited from class bing.requests.BingRequest |
hashCode, removeParentOptions, setAdult, setLanguage, setLatitude, setLongitude, setMarket, setOptions, setRadius, setVersion, toString |
Methods inherited from class java.lang.Object |
equals, getClass, notify, notifyAll, wait, wait, wait |
NEWS_SORT_OPTIONS_DATE
public static final java.lang.String NEWS_SORT_OPTIONS_DATE
- See Also:
- Constant Field Values
NEWS_SORT_OPTIONS_RELEVANCE
public static final java.lang.String NEWS_SORT_OPTIONS_RELEVANCE
- See Also:
- Constant Field Values
BingNewsRequest
public BingNewsRequest()
requestOptions
public java.lang.String requestOptions()
- Description copied from class:
BingRequest
- Specifies request specific options to be passed to the API
- Overrides:
requestOptions
in class BingRequest
- Returns:
- A string representing the various set API parameters
sourceType
public java.lang.String sourceType()
- Description copied from class:
BingRequest
- Specifies the source type of the current request object.
- Specified by:
sourceType
in class BingRequest
- Returns:
- A string representing the source type of the current object.
setCount
public void setCount(long count)
setOffset
public void setOffset(long offset)
setCategory
public void setCategory(java.lang.String category)
setLocationOverride
public void setLocationOverride(java.lang.String locationOverride)
setSortBy
public void setSortBy(java.lang.String sortBy)
- Parameters:
sortBy
- One of the NEWS_SORT_OPTIONS_ options.