@UriParams public class TwitterConfiguration extends Object
Constructor and Description |
---|
TwitterConfiguration() |
Modifier and Type | Method and Description |
---|---|
void |
checkComplete()
Ensures required fields are available.
|
twitter4j.TwitterStream |
createTwitterStream() |
String |
getAccessToken()
The access token.
|
String |
getAccessTokenSecret()
The access secret.
|
twitter4j.conf.Configuration |
getConfiguration()
Builds a Twitter4J Configuration using the OAuth params.
|
String |
getConsumerKey() |
String |
getConsumerSecret() |
Integer |
getCount() |
String |
getDistanceMetric() |
String |
getHttpProxyHost() |
String |
getHttpProxyPassword() |
Integer |
getHttpProxyPort() |
String |
getHttpProxyUser() |
String |
getKeywords() |
String |
getKind() |
String |
getLang() |
Double |
getLatitude() |
String |
getLocations() |
Double |
getLongitude() |
Integer |
getNumberOfPages() |
Double |
getRadius() |
long |
getSinceId() |
twitter4j.Twitter |
getTwitter() |
twitter4j.TwitterStream |
getTwitterStream() |
EndpointType |
getType() |
String |
getUser() |
String |
getUserIds() |
boolean |
isFilterOld() |
void |
setAccessToken(String accessToken) |
void |
setAccessTokenSecret(String accessTokenSecret) |
void |
setConsumerKey(String consumerKey)
The consumer key.
|
void |
setConsumerSecret(String consumerSecret)
The consumer secret.
|
void |
setCount(Integer count)
Limiting number of results per page.
|
void |
setDistanceMetric(String distanceMetric)
Used by the non-stream geography search, to search by radius using the configured metrics.
|
void |
setFilterOld(boolean filterOld)
Filter out old tweets, that has previously been polled.
|
void |
setHttpProxyHost(String httpProxyHost)
The http proxy host which can be used for the camel-twitter.
|
void |
setHttpProxyPassword(String httpProxyPassword)
The http proxy password which can be used for the camel-twitter.
|
void |
setHttpProxyPort(Integer httpProxyPort)
The http proxy port which can be used for the camel-twitter.
|
void |
setHttpProxyUser(String httpProxyUser)
The http proxy user which can be used for the camel-twitter.
|
void |
setKeywords(String keywords)
Can be used for search and streaming/filter.
|
void |
setKind(String kind)
What polling mode to use, direct, polling or event based.
|
void |
setLang(String lang)
The lang string ISO_639-1 which will be used for searching
|
void |
setLatitude(Double latitude)
Used by the non-stream geography search to search by latitude.
|
void |
setLocations(String locations)
Bounding boxes, created by pairs of lat/lons.
|
void |
setLongitude(Double longitude)
Used by the non-stream geography search to search by longitude.
|
void |
setNumberOfPages(Integer numberOfPages)
The number of pages result which you want camel-twitter to consume.
|
void |
setRadius(Double radius)
Used by the non-stream geography search to search by radius.
|
void |
setSinceId(long sinceId)
The last tweet id which will be used for pulling the tweets.
|
void |
setTwitter(twitter4j.Twitter twitter) |
void |
setTwitterStream(twitter4j.TwitterStream twitterStream)
To use a custom instance of TwitterStream
|
void |
setType(EndpointType type)
Endpoint type to use.
|
void |
setUser(String user)
Username, used for user timeline consumption, direct message production, etc.
|
void |
setUserIds(String userIds)
To filter by user ids for streaming/filter.
|
public void checkComplete()
public twitter4j.conf.Configuration getConfiguration()
public twitter4j.Twitter getTwitter()
public void setTwitter(twitter4j.Twitter twitter)
public twitter4j.TwitterStream getTwitterStream()
public void setTwitterStream(twitter4j.TwitterStream twitterStream)
public twitter4j.TwitterStream createTwitterStream()
public String getKind()
public void setKind(String kind)
public String getConsumerKey()
public void setConsumerKey(String consumerKey)
public String getConsumerSecret()
public void setConsumerSecret(String consumerSecret)
public String getAccessToken()
public void setAccessToken(String accessToken)
public String getAccessTokenSecret()
public void setAccessTokenSecret(String accessTokenSecret)
public String getUser()
public void setUser(String user)
public String getKeywords()
public void setKeywords(String keywords)
public EndpointType getType()
public void setType(EndpointType type)
public String getLocations()
public void setLocations(String locations)
public String getUserIds()
public void setUserIds(String userIds)
public boolean isFilterOld()
public void setFilterOld(boolean filterOld)
public long getSinceId()
public void setSinceId(long sinceId)
public String getLang()
public void setLang(String lang)
public Integer getCount()
public void setCount(Integer count)
public Integer getNumberOfPages()
public void setNumberOfPages(Integer numberOfPages)
public void setHttpProxyHost(String httpProxyHost)
public String getHttpProxyHost()
public void setHttpProxyUser(String httpProxyUser)
public String getHttpProxyUser()
public void setHttpProxyPassword(String httpProxyPassword)
public String getHttpProxyPassword()
public void setHttpProxyPort(Integer httpProxyPort)
public Integer getHttpProxyPort()
public Double getLongitude()
public void setLongitude(Double longitude)
public Double getLatitude()
public void setLatitude(Double latitude)
public Double getRadius()
public void setRadius(Double radius)
public String getDistanceMetric()
public void setDistanceMetric(String distanceMetric)
Apache Camel