Class TwitterServiceImpl
- java.lang.Object
-
- org.onebusaway.admin.service.impl.TwitterServiceImpl
-
public class TwitterServiceImpl extends Object
Implementation of twitter tweets. Due to the complexity of oauth we delegate the actual connections to twitter4j
-
-
Constructor Summary
Constructors Constructor Description TwitterServiceImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setAccessToken(String token)
void
setAccessTokenSecret(String secret)
void
setConsumerKey(String key)
void
setConsumerSecret(String secret)
static String
toTweet(ServiceAlertBean bean, NotificationStrategy strategy)
convert a service alert to a tweet.String
updateStatus(String statusMessage)
-
-
-
Method Detail
-
setConsumerKey
public void setConsumerKey(String key)
-
setConsumerSecret
public void setConsumerSecret(String secret)
-
setAccessToken
public void setAccessToken(String token)
-
setAccessTokenSecret
public void setAccessTokenSecret(String secret)
-
updateStatus
public String updateStatus(String statusMessage) throws IOException
- Throws:
IOException
-
toTweet
public static String toTweet(ServiceAlertBean bean, NotificationStrategy strategy)
convert a service alert to a tweet. @See NotificationStrategy to change behaviour.
-
-