|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.net.TwitterHelper
public class TwitterHelper
A helper class for the twitter setup.
| Field Summary | |
|---|---|
static String |
ACCESS_TOKEN
the access token. |
static String |
ACCESS_TOKEN_SECRET
the access token secret. |
static String |
CONSUMER_KEY
the consumer key. |
static String |
CONSUMER_SECRET
the consumer secret. |
static String |
FILENAME
the name of the props file. |
protected static Properties |
m_Properties
the properties. |
| Constructor Summary | |
|---|---|
TwitterHelper()
|
|
| Method Summary | |
|---|---|
static String |
getAccessToken()
Returns the access token. |
static BasePassword |
getAccessTokenSecret()
Returns the access token secret. |
static String |
getConsumerKey()
Returns the consumer key. |
static BasePassword |
getConsumerSecret()
Returns the consumer secret. |
static Properties |
getProperties()
Returns the underlying properties. |
static twitter4j.Twitter |
getTwitterConnection(AbstractActor actor)
Returns the twitter connection object. |
protected static TwitterConnection |
getTwitterConnectionActor(AbstractActor actor)
Returns the closest TwitterConnection actor, if available. |
static twitter4j.TwitterStream |
getTwitterStreamConnection(AbstractActor actor)
Returns the twitter stream connection object. |
static boolean |
writeProperties()
Writes the specified properties to disk. |
static boolean |
writeProperties(Properties props)
Writes the specified properties to disk. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String FILENAME
public static final String CONSUMER_KEY
public static final String CONSUMER_SECRET
public static final String ACCESS_TOKEN
public static final String ACCESS_TOKEN_SECRET
protected static Properties m_Properties
| Constructor Detail |
|---|
public TwitterHelper()
| Method Detail |
|---|
public static Properties getProperties()
public static boolean writeProperties()
props - the properties to write to disk
public static boolean writeProperties(Properties props)
props - the properties to write to disk
public static String getConsumerKey()
public static BasePassword getConsumerSecret()
public static String getAccessToken()
public static BasePassword getAccessTokenSecret()
protected static TwitterConnection getTwitterConnectionActor(AbstractActor actor)
actor - the actor start the search from (towards the root)
public static twitter4j.Twitter getTwitterConnection(AbstractActor actor)
actor - the actor to start the search from
public static twitter4j.TwitterStream getTwitterStreamConnection(AbstractActor actor)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||