|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuiton.wikitty.services.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 boolean |
listenEvent
Indique si les events sont ecoutes (true) via le transporter |
protected org.jivesoftware.smackx.muc.MultiUserChat |
muc
|
protected boolean |
propagateEvent
Indique si les events sont propages (true) via le transporter |
static String |
PROPERTY_EVENT_NAME
|
protected String |
pseudo
|
protected String |
room
|
protected WikittyServiceNotifier |
ws
Notifier service reference reference. |
| Constructor Summary | |
|---|---|
XMPPNotifierTransporter(org.nuiton.util.ApplicationConfig config)
|
|
| Method Summary | |
|---|---|
WikittyServiceNotifier |
getWikittyServiceNotifier()
|
protected void |
initXMPP(org.nuiton.util.ApplicationConfig config)
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(WikittyEvent event)
Send a jgroup message to all other channel member. |
void |
setWikittyServiceNotifier(WikittyServiceNotifier ws)
this method must be call before RemoteNotifierTransporter utilisation to indicate which service use it |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PROPERTY_EVENT_NAME
protected boolean propagateEvent
protected boolean listenEvent
protected WikittyServiceNotifier ws
protected String room
protected String pseudo
protected org.jivesoftware.smack.XMPPConnection connection
protected org.jivesoftware.smackx.muc.MultiUserChat muc
| Constructor Detail |
|---|
public XMPPNotifierTransporter(org.nuiton.util.ApplicationConfig config)
ws - props - | Method Detail |
|---|
public WikittyServiceNotifier getWikittyServiceNotifier()
public void setWikittyServiceNotifier(WikittyServiceNotifier ws)
WikittyServiceNotifier.RemoteNotifierTransporter
setWikittyServiceNotifier in interface WikittyServiceNotifier.RemoteNotifierTransporterprotected void initXMPP(org.nuiton.util.ApplicationConfig config)
props - public void sendMessage(WikittyEvent event) throws Exception
WikittyServiceNotifier.RemoteNotifierTransporter
sendMessage in interface WikittyServiceNotifier.RemoteNotifierTransporterevent - message to send
Exceptionpublic void processPacket(org.jivesoftware.smack.packet.Packet packet)
processPacket in interface org.jivesoftware.smack.PacketListenerpacket -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||