Package tigase.mix.modules
Class RoomPresenceModule
java.lang.Object
tigase.stats.CounterValue
tigase.stats.Counter
tigase.stats.StatisticHolderImpl
tigase.pubsub.AbstractPubSubModule
tigase.mix.modules.RoomPresenceModule
- All Implemented Interfaces:
tigase.component.modules.Module
,tigase.kernel.beans.Initializable
,tigase.kernel.beans.UnregisterAware
,tigase.stats.StatisticHolder
@Bean(name="roomPresenceModule",
parent=IMixComponent.class,
active=true)
public class RoomPresenceModule
extends tigase.pubsub.AbstractPubSubModule
implements tigase.kernel.beans.Initializable, tigase.kernel.beans.UnregisterAware
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static interface
-
Field Summary
Fields inherited from class tigase.pubsub.AbstractPubSubModule
config, log, packetWriter, pubSubLogic
Fields inherited from class tigase.stats.CounterValue
counter, level, name
Fields inherited from interface tigase.component.modules.Module
EMPTY_FEATURES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
broadcastMessage
(tigase.xmpp.jid.BareJID channelJID, String senderNick, tigase.xml.Element message) boolean
canHandle
(tigase.server.Packet packet) String[]
tigase.criteria.Criteria
void
void
void
void
participantJoined
(tigase.xmpp.jid.BareJID channelJID, tigase.xmpp.jid.JID occupant, String nick) void
participantLeft
(tigase.xmpp.jid.BareJID channelJID, tigase.xmpp.jid.JID occupant, String nick) void
process
(tigase.server.Packet packet) Methods inherited from class tigase.pubsub.AbstractPubSubModule
getRepository, makeArray, makeArray
Methods inherited from class tigase.stats.StatisticHolderImpl
getStatistics, setStatisticsPrefix, statisticExecutedIn
Methods inherited from class tigase.stats.Counter
everyHour, everyMinute, everySecond, getPerHour, getPerMinute, getPerSecond
Methods inherited from class tigase.stats.CounterValue
getLevel, getName, getValue, inc, setName, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface tigase.stats.StatisticHolder
everyHour, everyMinute, everySecond
-
Field Details
-
MUC_XMLNS
- See Also:
-
MUC_USER_XMLNS
- See Also:
-
-
Constructor Details
-
RoomPresenceModule
public RoomPresenceModule()
-
-
Method Details
-
canHandle
public boolean canHandle(tigase.server.Packet packet) - Specified by:
canHandle
in interfacetigase.component.modules.Module
- Overrides:
canHandle
in classtigase.pubsub.AbstractPubSubModule
-
getFeatures
- Specified by:
getFeatures
in interfacetigase.component.modules.Module
-
getModuleCriteria
public tigase.criteria.Criteria getModuleCriteria()- Specified by:
getModuleCriteria
in interfacetigase.component.modules.Module
-
process
public void process(tigase.server.Packet packet) throws tigase.component.exceptions.ComponentException, tigase.util.stringprep.TigaseStringprepException - Specified by:
process
in interfacetigase.component.modules.Module
- Throws:
tigase.component.exceptions.ComponentException
tigase.util.stringprep.TigaseStringprepException
-
broadcastMessage
public void broadcastMessage(tigase.xmpp.jid.BareJID channelJID, String senderNick, tigase.xml.Element message) -
handleBroadcastMessageEvent
@HandleEvent public void handleBroadcastMessageEvent(RoomPresenceModule.MucMessageBroadcastEvent event) -
handleKickoutEvent
-
initialize
public void initialize()- Specified by:
initialize
in interfacetigase.kernel.beans.Initializable
-
beforeUnregister
public void beforeUnregister()- Specified by:
beforeUnregister
in interfacetigase.kernel.beans.UnregisterAware
-
participantJoined
public void participantJoined(tigase.xmpp.jid.BareJID channelJID, tigase.xmpp.jid.JID occupant, String nick) -
participantLeft
public void participantLeft(tigase.xmpp.jid.BareJID channelJID, tigase.xmpp.jid.JID occupant, String nick)
-