Spring Integration

org.springframework.integration.twitter.oauth
Class OAuthConfiguration

java.lang.Object
  extended by org.springframework.integration.twitter.oauth.OAuthConfiguration

public class OAuthConfiguration
extends Object

Simple bean we can use to store the configuration and store shared references to both an AsyncTwitter and an Twitter instance.

client should store this bean and simply lookup the Twitter configuration from there


Constructor Summary
OAuthConfiguration(String consumerKey, String consumerSecret, String accessToken, String accessTokenSecret)
           
 
Method Summary
 String getAccessToken()
           
 String getAccessTokenSecret()
           
 String getConsumerKey()
           
 String getConsumerSecret()
           
 twitter4j.Twitter getTwitter()
           
 void setAccessToken(String accessToken)
           
 void setAccessTokenSecret(String accessTokenSecret)
           
 void setConsumerKey(String consumerKey)
           
 void setConsumerSecret(String consumerSecret)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OAuthConfiguration

public OAuthConfiguration(String consumerKey,
                          String consumerSecret,
                          String accessToken,
                          String accessTokenSecret)
Method Detail

getTwitter

public twitter4j.Twitter getTwitter()
Returns:

getConsumerKey

public String getConsumerKey()

setConsumerKey

public void setConsumerKey(String consumerKey)

getConsumerSecret

public String getConsumerSecret()

setConsumerSecret

public void setConsumerSecret(String consumerSecret)

getAccessToken

public String getAccessToken()

setAccessToken

public void setAccessToken(String accessToken)

getAccessTokenSecret

public String getAccessTokenSecret()

setAccessTokenSecret

public void setAccessTokenSecret(String accessTokenSecret)

Spring Integration

Copyright © 2010. All Rights Reserved.