|
||||||||||
| 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.WebSearchRequest
public class WebSearchRequest
Web search request object.
| Constructor Summary | |
|---|---|
WebSearchRequest(String query)
Constructs a new web search request. |
|
| Method Summary | |
|---|---|
void |
addLicense(String license)
The Creative Commons license that the contents are licensed under. |
void |
setAdultOk(boolean adultOk)
Specifies if adult related results are permitted. |
void |
setCountry(String country)
Restricts the results to a given country. |
void |
setFormat(String format)
Specifies the kind of web document to search for. |
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 |
setSimilarOk(boolean similarOk)
Specifies whether to allow multiple results with similar content. |
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 WebSearchRequest(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 setFormat(String format)
format - Specifies the kind of web document to search for.public void setAdultOk(boolean adultOk)
adultOk - Specifies if adult related results are permitted.public void setSimilarOk(boolean similarOk)
similarOk - Specifies whether to allow multiple results with similar content.public void setLanguage(String language)
language - The language the results are written in.public void setCountry(String country)
country - The country code of the country to restrict search results to.public void addLicense(String license)
license - The Creative Commons license that the contents are licensed under. You may submit multiple values.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||