|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectnet.obxlabs.romefeeder.Feeder
net.obxlabs.romefeeder.TwitterFeeder
public class TwitterFeeder
Twitter feed manager.
The TwitterFeeder allows to load and update one or multiple twitter feeds by adding util functions to the basic Feeder class.
| Field Summary |
|---|
| Fields inherited from class net.obxlabs.romefeeder.Feeder |
|---|
postloadEntryCallback, postloadFeedCallback, postupdateFeedCallback, postupdateGlobalCallback, preloadEntryCallback, preloadFeedCallback, preupdateFeedCallback, preupdateGlobalCallback, PUBLISHED_DATE, TITLE, UNSORTED, UPDATED_DATE, verbose |
| Constructor Summary | |
|---|---|
TwitterFeeder()
Create an empty Feeder. |
|
| Method Summary | |
|---|---|
void |
all(java.lang.String words)
Set the words that must be in a tweet. |
void |
any(java.lang.String words)
Set the words that can be in a tweet. |
void |
from(java.lang.String user)
Set the user a tweet should be from. |
void |
km()
Set the unit of measurement to kilometers. |
void |
lang(java.lang.String lang)
Set the language a tweet should be in. |
void |
links(boolean links)
Set if a tweet must contain links. |
void |
mi()
Set the unit of measurement to miles. |
void |
near(java.lang.String place)
Set the place a tweet should be sent near from. |
void |
negative(boolean negative)
Set if a tweet must have received a negative :( attitude. |
void |
not(java.lang.String words)
Set the words that should not be in a tweet. |
void |
page(int page)
Set the page number that the search should return. |
void |
phrase(java.lang.String phrase)
Set a phrase that should be in a tweet. |
void |
positive(boolean positive)
Set if a tweet must have received a positive :) attitude. |
void |
question(boolean question)
Set if a tweet must be a question. |
void |
ref(java.lang.String user)
Set the user a tweet should reference. |
void |
rpp(int rpp)
Set the number of returned tweets per search. |
void |
search()
Search twitter using the pre-specified search values. |
void |
search(java.lang.String query)
Search twitter using the specified query. |
void |
since(java.lang.String date)
Set the date a tweet should have been posted after. |
void |
tag(java.lang.String tag)
Set the hashtag that should be in a tweet. |
void |
to(java.lang.String user)
Set the user a tweet should be to. |
void |
unit(java.lang.String units)
Set the type of unit used to measure the distance from a tweet's location. |
void |
until(java.lang.String date)
Set the date a tweet should have been posted before. |
void |
within(int dist)
Set the within distance a tweet should be from a pre-specified place. |
| Methods inherited from class net.obxlabs.romefeeder.Feeder |
|---|
clear, count, countFeeds, err, getFeed, getUpdateInterval, hasNext, last, load, next, out, removeFeed, removeFeed, reset, run, setLoadCallback, setLoadCallback, setLoadEntryCallback, setLoadEntryCallback, setLoadFeedCallback, setLoadFeedCallback, setProxy, setUpdateCallback, setUpdateCallback, setUpdateFeedCallback, setUpdateFeedCallback, setUpdateInterval, sort, startUpdate, startUpdate, startUpdate, stopUpdate |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TwitterFeeder()
| Method Detail |
|---|
public void search(java.lang.String query)
query - search querypublic void search()
public void all(java.lang.String words)
words - wordspublic void phrase(java.lang.String phrase)
phrase - phrasepublic void any(java.lang.String words)
words - wordspublic void not(java.lang.String words)
words - wordspublic void tag(java.lang.String tag)
tag - hashtagpublic void lang(java.lang.String lang)
lang - language id (e.g. all, en, fr, etc)public void from(java.lang.String user)
user - userpublic void to(java.lang.String user)
user - userpublic void ref(java.lang.String user)
user - userpublic void near(java.lang.String place)
place - placepublic void within(int dist)
dist - distancepublic void unit(java.lang.String units)
units - km or mipublic void km()
public void mi()
public void since(java.lang.String date)
date - date (yyyy-mm-dd)public void until(java.lang.String date)
date - date (yyyy-mm-dd)public void positive(boolean positive)
positive - true for a positive attitude, not to turn it offpublic void negative(boolean negative)
negative - true for a negative attitude, not to turn it offpublic void question(boolean question)
question - true for a question, not to turn it offpublic void links(boolean links)
links - true if it contains links, false to turn it offpublic void rpp(int rpp)
rpp - returned tweets per searchpublic void page(int page)
page - page number
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||