|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.yahoo.rest.RestRequest
com.yahoo.search.NewsSearchRequest
public class NewsSearchRequest
News search request object.
| Constructor Summary | |
|---|---|
NewsSearchRequest(String query)
Constructs a new news search request. |
|
| Method Summary | |
|---|---|
void |
setLanguage(String language)
The language the results are written in. |
void |
setQuery(String query)
|
void |
setResults(int results)
The maximum number of results to return. |
void |
setSort(String sort)
The sort order for news articles. |
void |
setStart(BigInteger start)
The starting result position. |
void |
setType(String type)
Sets the type of the search. |
| Methods inherited from class com.yahoo.rest.RestRequest |
|---|
addParameter, clearParameter, getParameters, getRequestUrl, setParameter, setRequestUrl |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NewsSearchRequest(String query)
query - The query to search for. This is the only required attribute.| Method Detail |
|---|
public void setQuery(String query)
public void setType(String type)
type - The type of search to execute.public void setResults(int results)
results - The maximum number of results to return.public void setStart(BigInteger start)
start - The starting result position.public void setSort(String sort)
sort - The sort order for news articles.public void setLanguage(String language)
language - The language the results are written in.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||