egovframework.rfc3.sns.web
Class TwitterManager

java.lang.Object
  extended by egovframework.rfc3.sns.web.TwitterManager

public class TwitterManager
extends java.lang.Object


Constructor Summary
TwitterManager(javax.servlet.http.HttpServletRequest request, java.lang.String key, java.lang.String secret, java.lang.String callbackUrl)
           
 
Method Summary
 twitter4j.auth.AccessToken getAccessToken(java.lang.String oauthToken, java.lang.String oauthVerifier, twitter4j.auth.RequestToken requestToken)
          getAccessToken
 twitter4j.User getLoginTwUser()
          getLoginTwUser
 twitter4j.auth.RequestToken getRequestToken()
          getRequestToken
 void printStatuses()
          printStatuses
 void updateFileStatus(java.io.File file, java.lang.String msg)
          updateFileStatus
 void updateStatus(java.lang.String msg)
          updateStatus
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TwitterManager

public TwitterManager(javax.servlet.http.HttpServletRequest request,
                      java.lang.String key,
                      java.lang.String secret,
                      java.lang.String callbackUrl)
Method Detail

getRequestToken

public twitter4j.auth.RequestToken getRequestToken()
                                            throws twitter4j.TwitterException
getRequestToken

Returns:
Throws:
twitter4j.TwitterException

getAccessToken

public twitter4j.auth.AccessToken getAccessToken(java.lang.String oauthToken,
                                                 java.lang.String oauthVerifier,
                                                 twitter4j.auth.RequestToken requestToken)
                                          throws twitter4j.TwitterException
getAccessToken

Parameters:
oauthToken -
oauthVerifier -
requestToken -
Returns:
Throws:
twitter4j.TwitterException

printStatuses

public void printStatuses()
                   throws twitter4j.TwitterException
printStatuses

Throws:
twitter4j.TwitterException

getLoginTwUser

public twitter4j.User getLoginTwUser()
                              throws twitter4j.TwitterException
getLoginTwUser

Returns:
Throws:
twitter4j.TwitterException

updateFileStatus

public void updateFileStatus(java.io.File file,
                             java.lang.String msg)
                      throws twitter4j.TwitterException
updateFileStatus

Parameters:
file -
msg -
Throws:
twitter4j.TwitterException

updateStatus

public void updateStatus(java.lang.String msg)
                  throws twitter4j.TwitterException
updateStatus

Parameters:
file -
msg -
Throws:
twitter4j.TwitterException