public class XMPPNotifierTransporter extends Object implements org.jivesoftware.smack.PacketListener, WikittyServiceNotifier.RemoteNotifierTransporter
Configuration
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
XMPPNotifierTransporter(org.nuiton.config.ApplicationConfig config) |
| Modifier and Type | Method and Description |
|---|---|
WikittyServiceNotifier |
getWikittyServiceNotifier() |
protected void |
initXMPP(org.nuiton.config.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
|
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
public XMPPNotifierTransporter(org.nuiton.config.ApplicationConfig config)
ws - props - public WikittyServiceNotifier getWikittyServiceNotifier()
public void setWikittyServiceNotifier(WikittyServiceNotifier ws)
WikittyServiceNotifier.RemoteNotifierTransportersetWikittyServiceNotifier in interface WikittyServiceNotifier.RemoteNotifierTransporterprotected void initXMPP(org.nuiton.config.ApplicationConfig config)
props - public void sendMessage(WikittyEvent event) throws Exception
WikittyServiceNotifier.RemoteNotifierTransportersendMessage in interface WikittyServiceNotifier.RemoteNotifierTransporterevent - message to sendExceptionpublic void processPacket(org.jivesoftware.smack.packet.Packet packet)
processPacket in interface org.jivesoftware.smack.PacketListenerpacket - Copyright © 2009–2015 CodeLutin. All rights reserved.