|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.notifd.MicroblogNotificationStrategy
public class MicroblogNotificationStrategy
Send notifications to a TwitterAPI-compatible microblog service.
| Field Summary | |
|---|---|
protected MicroblogConfigurationDao |
m_configDao
|
protected MicroblogConfigurationDao |
m_microblogConfigurationDao
|
| Constructor Summary | |
|---|---|
MicroblogNotificationStrategy()
Constructor for MicroblogNotificationStrategy. |
|
MicroblogNotificationStrategy(org.springframework.core.io.Resource configResource)
Constructor for MicroblogNotificationStrategy. |
|
| Method Summary | |
|---|---|
protected String |
buildMessageBody(List<Argument> arguments)
buildMessageBody |
protected twitter4j.Twitter |
buildUblogService(List<Argument> arguments)
buildUblogService |
protected static org.springframework.core.io.Resource |
findDefaultConfigResource()
findDefaultConfigResource |
protected String |
findDestName(List<Argument> arguments)
findDestName |
MicroblogConfigurationDao |
getMicroblogConfigurationDao()
getMicroblogConfigurationDao |
protected ThreadCategory |
log()
log |
int |
send(List<Argument> arguments)
send |
void |
setMicroblogConfigurationDao(MicroblogConfigurationDao dao)
setMicroblogConfigurationDao |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected MicroblogConfigurationDao m_microblogConfigurationDao
protected MicroblogConfigurationDao m_configDao
| Constructor Detail |
|---|
public MicroblogNotificationStrategy()
throws IOException
Constructor for MicroblogNotificationStrategy.
IOException - if any.public MicroblogNotificationStrategy(org.springframework.core.io.Resource configResource)
Constructor for MicroblogNotificationStrategy.
configResource - a Resource object.| Method Detail |
|---|
public int send(List<Argument> arguments)
send
send in interface NotificationStrategyarguments - a List object.
protected twitter4j.Twitter buildUblogService(List<Argument> arguments)
buildUblogService
arguments - a List object.
Twitter object.protected String buildMessageBody(List<Argument> arguments)
buildMessageBody
arguments - a List object.
String object.protected ThreadCategory log()
log
ThreadCategory object.protected String findDestName(List<Argument> arguments)
findDestName
arguments - a List object.
String object.
protected static org.springframework.core.io.Resource findDefaultConfigResource()
throws IOException
findDefaultConfigResource
Resource object.
IOException - if any.public void setMicroblogConfigurationDao(MicroblogConfigurationDao dao)
setMicroblogConfigurationDao
dao - a MicroblogConfigurationDao object.public MicroblogConfigurationDao getMicroblogConfigurationDao()
getMicroblogConfigurationDao
MicroblogConfigurationDao object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||