Package org.opennms.netmgt.notifd
Class MicroblogClient
- java.lang.Object
-
- org.opennms.netmgt.notifd.MicroblogClient
-
public class MicroblogClient extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MicroblogClient(MicroblogConfigurationDao dao)
MicroblogClient(org.springframework.core.io.Resource configResource)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MicroblogProfile
getProfile(java.lang.String profile)
twitter4j.Twitter
getTwitter(java.lang.String profile)
boolean
hasBasicAuth(java.lang.String profile)
boolean
hasOAuth(java.lang.String profile)
boolean
hasOAuthAccessToken(java.lang.String profile)
boolean
isOAuthUsable(java.lang.String profile)
static void
main(java.lang.String[] args)
MicroblogAuthorization
requestAuthorization(java.lang.String profile)
-
-
-
Constructor Detail
-
MicroblogClient
public MicroblogClient(MicroblogConfigurationDao dao)
-
MicroblogClient
public MicroblogClient(org.springframework.core.io.Resource configResource)
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getProfile
public MicroblogProfile getProfile(java.lang.String profile)
-
isOAuthUsable
public boolean isOAuthUsable(java.lang.String profile)
-
hasOAuth
public boolean hasOAuth(java.lang.String profile)
-
hasOAuthAccessToken
public boolean hasOAuthAccessToken(java.lang.String profile)
-
hasBasicAuth
public boolean hasBasicAuth(java.lang.String profile)
-
requestAuthorization
public MicroblogAuthorization requestAuthorization(java.lang.String profile) throws MicroblogAuthorization.MicroblogAuthorizationException
-
getTwitter
public twitter4j.Twitter getTwitter(java.lang.String profile)
-
-