@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 |
getLang() |
Double |
getLatitude() |
String |
getLocations() |
Double |
getLongitude() |
Integer |
getNumberOfPages() |
Double |
getRadius() |
long |
getSinceId() |
twitter4j.Twitter |
getTwitter() |
twitter4j.TwitterStream |
getTwitterStream() |
EndpointType |
getType() |
String |
getUserIds() |
boolean |
isExtendedMode() |
boolean |
isFilterOld() |
boolean |
isSortById() |
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 |
setExtendedMode(Boolean extendedMode)
Used for enabling full text from twitter (eg receive tweets that contains more than 140 characters).
|
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 |
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 |
setSortById(boolean sortById)
Sorts by id, so the oldest are first, and newest last.
|
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 |
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 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 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 boolean isSortById()
public void setSortById(boolean sortById)
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)
public void setExtendedMode(Boolean extendedMode)
public boolean isExtendedMode()
Apache Camel