|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.wikitty.XMPPNotifierTransporter
public class XMPPNotifierTransporter
Transporter d'event via xmpp. Pour que ca fonctionne il faut un serveur xmpp avec une room
Configuration
| Field Summary | |
|---|---|
protected org.jivesoftware.smack.XMPPConnection |
connection
|
protected org.jivesoftware.smackx.muc.MultiUserChat |
muc
|
protected boolean |
persistent
if persistent is true use Chat otherwize use MUC. |
static java.lang.String |
PROPERTY_EVENT_NAME
|
protected java.lang.String |
pseudo
|
protected java.lang.String |
room
|
static java.lang.String |
WIKITTY_NOTIFICATION_PERSISTENT
|
static java.lang.String |
WIKITTY_XMPP_ROOM
|
static java.lang.String |
WIKITTY_XMPP_SERVER
|
protected WikittyServiceNotifier |
ws
Notifier service reference reference. |
| Constructor Summary | |
|---|---|
XMPPNotifierTransporter(WikittyServiceNotifier ws,
java.util.Properties props)
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getUniqueLoginName()
Recherche le meilleur nom a utiliser comme pseudo pour cette machine. |
protected void |
initXMPP(java.util.Properties props)
Si persistent est vrai alors il faut toujours utilise le meme user id |
void |
processPacket(org.jivesoftware.smack.packet.Packet packet)
used for MUC message |
void |
sendMessage(WikittyServiceEvent event)
Send a jgroup message to all other channel member. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PROPERTY_EVENT_NAME
public static final java.lang.String WIKITTY_XMPP_SERVER
public static final java.lang.String WIKITTY_XMPP_ROOM
public static final java.lang.String WIKITTY_NOTIFICATION_PERSISTENT
protected WikittyServiceNotifier ws
protected boolean persistent
protected java.lang.String room
protected java.lang.String pseudo
protected org.jivesoftware.smack.XMPPConnection connection
protected org.jivesoftware.smackx.muc.MultiUserChat muc
| Constructor Detail |
|---|
public XMPPNotifierTransporter(WikittyServiceNotifier ws, java.util.Properties props)
ws - props - | Method Detail |
|---|
protected void initXMPP(java.util.Properties props)
props - public void sendMessage(WikittyServiceEvent event) throws java.lang.Exception
WikittyServiceNotifier.RemoteNotifierTransporter
sendMessage in interface WikittyServiceNotifier.RemoteNotifierTransporterevent - message to send
java.lang.Exceptionpublic void processPacket(org.jivesoftware.smack.packet.Packet packet)
processPacket in interface org.jivesoftware.smack.PacketListenerpacket - public static java.lang.String getUniqueLoginName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||