Package org.opennms.netmgt.notifd
Class MicroblogClient
- java.lang.Object
-
- org.opennms.netmgt.notifd.MicroblogClient
-
public class MicroblogClient extends 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(String profile)
twitter4j.Twitter
getTwitter(String profile)
boolean
hasBasicAuth(String profile)
boolean
hasOAuth(String profile)
boolean
hasOAuthAccessToken(String profile)
boolean
isOAuthUsable(String profile)
static void
main(String[] args)
MicroblogAuthorization
requestAuthorization(String profile)
-
-
-
Constructor Detail
-
MicroblogClient
public MicroblogClient(MicroblogConfigurationDao dao)
-
MicroblogClient
public MicroblogClient(org.springframework.core.io.Resource configResource)
-
-
Method Detail
-
getProfile
public MicroblogProfile getProfile(String profile)
-
isOAuthUsable
public boolean isOAuthUsable(String profile)
-
hasOAuth
public boolean hasOAuth(String profile)
-
hasOAuthAccessToken
public boolean hasOAuthAccessToken(String profile)
-
hasBasicAuth
public boolean hasBasicAuth(String profile)
-
requestAuthorization
public MicroblogAuthorization requestAuthorization(String profile) throws MicroblogAuthorization.MicroblogAuthorizationException
-
getTwitter
public twitter4j.Twitter getTwitter(String profile)
-
-