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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interface -
Field Summary
FieldsFields inherited from class tigase.pubsub.AbstractPubSubModule
config, log, packetWriter, pubSubLogicFields inherited from class tigase.stats.CounterValue
counter, level, nameFields inherited from interface tigase.component.modules.Module
EMPTY_FEATURES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidbroadcastMessage(tigase.xmpp.jid.BareJID channelJID, String senderNick, tigase.xml.Element message) booleancanHandle(tigase.server.Packet packet) String[]tigase.criteria.CriteriavoidvoidvoidvoidparticipantJoined(tigase.xmpp.jid.BareJID channelJID, tigase.xmpp.jid.JID occupant, String nick) voidparticipantLeft(tigase.xmpp.jid.BareJID channelJID, tigase.xmpp.jid.JID occupant, String nick) voidprocess(tigase.server.Packet packet) Methods inherited from class tigase.pubsub.AbstractPubSubModule
getRepository, makeArray, makeArrayMethods inherited from class tigase.stats.StatisticHolderImpl
getStatistics, setStatisticsPrefix, statisticExecutedInMethods inherited from class tigase.stats.Counter
everyHour, everyMinute, everySecond, getPerHour, getPerMinute, getPerSecondMethods inherited from class tigase.stats.CounterValue
getLevel, getName, getValue, inc, setName, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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:
canHandlein interfacetigase.component.modules.Module- Overrides:
canHandlein classtigase.pubsub.AbstractPubSubModule
-
getFeatures
- Specified by:
getFeaturesin interfacetigase.component.modules.Module
-
getModuleCriteria
public tigase.criteria.Criteria getModuleCriteria()- Specified by:
getModuleCriteriain interfacetigase.component.modules.Module
-
process
public void process(tigase.server.Packet packet) throws tigase.component.exceptions.ComponentException, tigase.util.stringprep.TigaseStringprepException - Specified by:
processin interfacetigase.component.modules.Module- Throws:
tigase.component.exceptions.ComponentExceptiontigase.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:
initializein interfacetigase.kernel.beans.Initializable
-
beforeUnregister
public void beforeUnregister()- Specified by:
beforeUnregisterin 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)
-