|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.flow.core.AbstractActor
adams.flow.standalone.AbstractStandalone
adams.flow.standalone.TwitterConnection
public class TwitterConnection
Provides access to various twitter services.
For your own twitter account, you can obtain consumer key and access token for ADAMS (= application trying to access twitter) here:
https://dev.twitter.com/apps/
And make sure that ADAMS has READ and WRITE access.
-D <int> (property: debugLevel) The greater the number the more additional info the scheme may output to the console (0 = off). default: 0 minimum: 0
-name <java.lang.String> (property: name) The name of the actor. default: TwitterConnection
-annotation <adams.core.base.BaseText> (property: annotations) The annotations to attach to this actor. default:
-skip (property: skip) If set to true, transformation is skipped and the input token is just forwarded as it is.
-stop-flow-on-error (property: stopFlowOnError) If set to true, the flow gets stopped in case this actor encounters an error; useful for critical actors.
-consumer-key <java.lang.String> (property: consumerKey) The twitter consumer key to use for connecting; leave empty for anonymous access. default:
-consumer-secret <adams.core.base.BasePassword> (property: consumerSecret)
The consumer secret of the twitter application to use for connecting.
default: {}
-access-token <java.lang.String> (property: accessToken) The twitter access token to use for connecting. default:
-acces-token-secret <adams.core.base.BasePassword> (property: accessTokenSecret)
The access token secret of the twitter application to use for connecting.
default: {}
| Field Summary | |
|---|---|
protected String |
m_AccessToken
the twitter access token. |
protected BasePassword |
m_AccessTokenSecret
the twitter access token secret. |
protected String |
m_ConsumerKey
the twitter consumer key. |
protected BasePassword |
m_ConsumerSecret
the twitter consumer secret. |
| Fields inherited from class adams.flow.core.AbstractActor |
|---|
m_Annotations, m_BackupState, m_DetectedObjectVariables, m_DetectedVariables, m_ErrorHandler, m_Executed, m_Executing, m_ExecutionListeningSupporter, m_FullName, m_Headless, m_Name, m_Parent, m_Root, m_ScopeHandler, m_Self, m_Skip, m_StopFlowOnError, m_StopMessage, m_Stopped, m_StorageHandler, m_VariablesUpdated |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Fields inherited from interface adams.flow.core.Actor |
|---|
FILE_EXTENSION, FILE_EXTENSION_GZ |
| Constructor Summary | |
|---|---|
TwitterConnection()
|
|
| Method Summary | |
|---|---|
String |
accessTokenSecretTipText()
Returns the tip text for this property. |
String |
accessTokenTipText()
Returns the tip text for this property. |
String |
consumerKeyTipText()
Returns the tip text for this property. |
String |
consumerSecretTipText()
Returns the tip text for this property. |
void |
defineOptions()
Adds options to the internal list of options. |
protected String |
doExecute()
Executes the flow item. |
String |
getAccessToken()
Returns the twitter acess token to use. |
BasePassword |
getAccessTokenSecret()
Returns the twitter access token secret to use. |
twitter4j.conf.Configuration |
getConfiguration()
Builds a configuration to use for the twitter4j factories. |
String |
getConsumerKey()
Returns the twitter consumer key to use. |
BasePassword |
getConsumerSecret()
Returns the twitter consumer secret to use. |
twitter4j.Twitter |
getTwitterConnection()
Returns the twitter connection object. |
twitter4j.TwitterStream |
getTwitterStreamConnection()
Returns the twitter stream connection object. |
String |
globalInfo()
Returns a string describing the object. |
void |
setAccessToken(String value)
Sets the twitter acess token to use. |
void |
setAccessTokenSecret(BasePassword value)
Sets the twitter access token secret to use. |
void |
setConsumerKey(String value)
Sets the twitter consumer key to use. |
void |
setConsumerSecret(BasePassword value)
Sets the twitter consumer secret to use. |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debugLevelTipText, finishInit, getDebugLevel, getOptionManager, isDebugOn, newOptionManager, setDebugLevel, toCommandLine, toString |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface adams.core.option.OptionHandler |
|---|
cleanUpOptions, getOptionManager |
| Field Detail |
|---|
protected String m_ConsumerKey
protected BasePassword m_ConsumerSecret
protected String m_AccessToken
protected BasePassword m_AccessTokenSecret
| Constructor Detail |
|---|
public TwitterConnection()
| Method Detail |
|---|
public String globalInfo()
globalInfo in class AbstractOptionHandlerpublic void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractActorpublic void setConsumerKey(String value)
value - the keypublic String getConsumerKey()
public String consumerKeyTipText()
public void setConsumerSecret(BasePassword value)
value - the secretpublic BasePassword getConsumerSecret()
public String consumerSecretTipText()
public void setAccessToken(String value)
value - the tokenpublic String getAccessToken()
public String accessTokenTipText()
public void setAccessTokenSecret(BasePassword value)
value - the secretpublic BasePassword getAccessTokenSecret()
public String accessTokenSecretTipText()
public twitter4j.conf.Configuration getConfiguration()
public twitter4j.Twitter getTwitterConnection()
public twitter4j.TwitterStream getTwitterStreamConnection()
protected String doExecute()
doExecute in class AbstractActor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||