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 MicroblogProfilegetProfile(String profile)twitter4j.TwittergetTwitter(String profile)booleanhasBasicAuth(String profile)booleanhasOAuth(String profile)booleanhasOAuthAccessToken(String profile)booleanisOAuthUsable(String profile)static voidmain(String[] args)MicroblogAuthorizationrequestAuthorization(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)
-
-