|
Spring Social Twitter | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.social.twitter.api.impl.SearchParameters
public class SearchParameters
Twitter search parameters. See specifications: https://dev.twitter.com/docs/api/1.1/get/search/tweets
| Nested Class Summary | |
|---|---|
static class |
SearchParameters.ResultType
ResultType enumeration. |
| Constructor Summary | |
|---|---|
SearchParameters(java.lang.String query)
Constructs SearchParameter object |
|
| Method Summary | |
|---|---|
java.lang.Integer |
getCount()
Returns count search parameter |
GeoCode |
getGeoCode()
Returns geo_code search parameter |
java.lang.String |
getLang()
Returns lang search parameter |
java.lang.String |
getLocale()
Returns locale search parameter |
java.lang.Long |
getMaxId()
Returns max_id search parameter |
java.lang.String |
getQuery()
Returns query, q parameter |
SearchParameters.ResultType |
getResultType()
Returns result_type search parameter |
java.lang.Long |
getSinceId()
Returns since_id search parameter |
java.util.Date |
getUntil()
Returns until search parameter |
boolean |
isIncludeEntities()
Returns include_entities search parameter |
void |
setCount(int count)
Sets optional count parameter. |
void |
setGeoCode(GeoCode geoCode)
Sets optional geocode parameter. |
void |
setIncludeEntities(boolean includeEntities)
Sets optional include_entities parameter. |
void |
setLang(java.lang.String lang)
Sets optional lang parameter. |
void |
setLocale(java.lang.String locale)
Sets optional locale parameter. |
void |
setMaxId(long maxId)
Sets optional max_id parameter. |
void |
setResultType(SearchParameters.ResultType resultType)
Sets optional result_type parameter. |
void |
setSinceId(long sinceId)
Sets optional since_id parameter. |
void |
setUntil(java.util.Date untilDate)
Sets optional until parameter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SearchParameters(java.lang.String query)
query - Search keywords| Method Detail |
|---|
public void setGeoCode(GeoCode geoCode)
geocode parameter. Restricts tweets by users located within a given radius
of the given latitude/longitude.
geoCode - GeoCode object stuffed with coordinates and radiusGeoCodepublic void setLang(java.lang.String lang)
lang parameter. Restricts tweets to the given language, given by an ISO 639-1 code.
lang - an ISO 639-1 language codepublic void setLocale(java.lang.String locale)
locale parameter. Specify the language of the query you are sending
(only ja is currently effective).
locale - localepublic void setResultType(SearchParameters.ResultType resultType)
result_type parameter. Specifies what type of search results. Default is mixed.
resultType - type of preferred result typeSearchParameters.ResultTypepublic void setCount(int count)
count parameter. Restricts the number of tweets to return, up to a maximum of 100.
Defaults to 15.
count - number of tweets to returnpublic void setUntil(java.util.Date untilDate)
until parameter. Restricts search to tweets generated before the given date.
untilDate - date to search untilpublic void setSinceId(long sinceId)
since_id parameter. Restricts search results with an ID greater than the specified one.
sinceId - The minimum Tweet ID to return in the resultspublic void setMaxId(long maxId)
max_id parameter. Restricts search results with an ID less or equel than the specified one.
maxId - The maximum Tweet ID to return in the resultspublic void setIncludeEntities(boolean includeEntities)
include_entities parameter. The entities node will be excluded when set to false.
includeEntities - Include entities nodepublic java.lang.String getQuery()
q parameter
public GeoCode getGeoCode()
geo_code search parameter
public java.lang.String getLang()
lang search parameter
public java.lang.String getLocale()
locale search parameter
public SearchParameters.ResultType getResultType()
result_type search parameter
public java.lang.Integer getCount()
count search parameter
public java.util.Date getUntil()
until search parameter
public java.lang.Long getSinceId()
since_id search parameter
public java.lang.Long getMaxId()
max_id search parameter
public boolean isIncludeEntities()
include_entities search parameter
|
Spring Social Twitter | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||