Package tigase.muc.modules
Class PresenceModuleNoBroadcast
java.lang.Object
tigase.component.modules.AbstractModule
tigase.muc.modules.AbstractMucModule
tigase.muc.modules.PresenceModuleImpl
tigase.muc.modules.PresenceModuleNoBroadcast
- All Implemented Interfaces:
tigase.component.modules.Module,tigase.kernel.beans.Initializable,tigase.kernel.beans.UnregisterAware,PresenceModule
@Bean(name="presences",
active=true)
public class PresenceModuleNoBroadcast
extends PresenceModuleImpl
Class for MucPresenceModule that strips down generated presence stanzas to bare minimum - only sends back presence to
user that joined the room for compatibility reasons.
- Author:
- wojtek
-
Nested Class Summary
Nested classes/interfaces inherited from class tigase.muc.modules.PresenceModuleImpl
PresenceModuleImpl.DelayDeliveryThreadNested classes/interfaces inherited from interface tigase.muc.modules.PresenceModule
PresenceModule.PresenceWrapper -
Field Summary
FieldsFields inherited from class tigase.component.modules.AbstractModule
eventBus, writerFields inherited from interface tigase.component.modules.Module
EMPTY_FEATURESFields inherited from interface tigase.muc.modules.PresenceModule
ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidString[]tigase.criteria.Criteriaprotected voidprocessExit(Room room, tigase.xml.Element presenceElement, tigase.xmpp.jid.JID senderJID) voidsendPresencesToNewOccupant(Room room, tigase.xmpp.jid.JID senderJID) protected voidsendPresenceToAllOccupants(tigase.xml.Element $presence, Room room, tigase.xmpp.jid.JID senderJID, boolean newRoomCreated, String newNickName) Methods inherited from class tigase.muc.modules.PresenceModuleImpl
beforeUnregister, clonePresence, initialize, preparePresence, process, processChangeAvailabilityStatus, processChangeNickname, processEntering, sendPresenceToAllOccupantsMethods inherited from class tigase.muc.modules.AbstractMucModule
createResultIQ, getNicknameFromJid, sendMucMessage, validateRTBLMethods inherited from class tigase.component.modules.AbstractModule
fireEvent, getEventBus, getWriter, setEventBus, setWriter, write, writeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface tigase.component.modules.Module
canHandle
-
Field Details
-
log
-
-
Constructor Details
-
PresenceModuleNoBroadcast
public PresenceModuleNoBroadcast()
-
-
Method Details
-
doQuit
public void doQuit(Room room, tigase.xmpp.jid.JID senderJID, Integer... selfStatusCodes) throws tigase.util.stringprep.TigaseStringprepException - Specified by:
doQuitin interfacePresenceModule- Overrides:
doQuitin classPresenceModuleImpl- Throws:
tigase.util.stringprep.TigaseStringprepException
-
getFeatures
- Specified by:
getFeaturesin interfacetigase.component.modules.Module- Overrides:
getFeaturesin classPresenceModuleImpl
-
getModuleCriteria
public tigase.criteria.Criteria getModuleCriteria()- Specified by:
getModuleCriteriain interfacetigase.component.modules.Module- Overrides:
getModuleCriteriain classPresenceModuleImpl
-
sendPresencesToNewOccupant
public void sendPresencesToNewOccupant(Room room, tigase.xmpp.jid.JID senderJID) throws tigase.util.stringprep.TigaseStringprepException - Specified by:
sendPresencesToNewOccupantin interfacePresenceModule- Overrides:
sendPresencesToNewOccupantin classPresenceModuleImpl- Throws:
tigase.util.stringprep.TigaseStringprepException
-
processExit
protected void processExit(Room room, tigase.xml.Element presenceElement, tigase.xmpp.jid.JID senderJID) throws MUCException, tigase.util.stringprep.TigaseStringprepException - Overrides:
processExitin classPresenceModuleImpl- Throws:
MUCExceptiontigase.util.stringprep.TigaseStringprepException
-
sendPresenceToAllOccupants
protected void sendPresenceToAllOccupants(tigase.xml.Element $presence, Room room, tigase.xmpp.jid.JID senderJID, boolean newRoomCreated, String newNickName) throws tigase.util.stringprep.TigaseStringprepException - Overrides:
sendPresenceToAllOccupantsin classPresenceModuleImpl- Throws:
tigase.util.stringprep.TigaseStringprepException
-