Package tigase.muc.modules
Class GroupchatMessageModule
- java.lang.Object
-
- tigase.component.modules.AbstractModule<MucContext>
-
- tigase.muc.modules.AbstractMucModule
-
- tigase.muc.modules.GroupchatMessageModule
-
- All Implemented Interfaces:
tigase.component.modules.ContextAware,tigase.component.modules.InitializingModule,tigase.component.modules.Module
public class GroupchatMessageModule extends AbstractMucModule
- Author:
- bmalkow
-
-
Constructor Summary
Constructors Constructor Description GroupchatMessageModule()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddMessageToHistory(Room room, tigase.xml.Element message, String body, tigase.xmpp.JID senderJid, String senderNickname, Date time)protected voidaddSubjectChangeToHistory(Room room, tigase.xml.Element message, String subject, tigase.xmpp.JID senderJid, String senderNickname, Date time)voidafterRegistration()static StringgenerateSubjectId(Date ts, String subject)String[]getFeatures()Method descriptiontigase.criteria.CriteriagetModuleCriteria()Method descriptionbooleanisChatStateAllowed()Method descriptionprotected tigase.server.PacketpreparePacket(String messageId, String xmlLang, tigase.xml.Element... content)voidprocess(tigase.server.Packet packet)Method descriptionvoidsendMessagesToAllOccupants(Room room, tigase.xmpp.JID fromJID, String xmlLang, tigase.xml.Element... content)voidsendMessagesToAllOccupants(Room room, tigase.xmpp.JID fromJID, tigase.server.Packet msg)voidsendMessagesToAllOccupants(Room room, tigase.xmpp.JID fromJID, tigase.xml.Element... content)voidsendMessagesToAllOccupantsJids(Room room, tigase.xmpp.JID fromJID, tigase.server.Packet msg)-
Methods inherited from class tigase.muc.modules.AbstractMucModule
createResultIQ, getNicknameFromJid, sendMucMessage
-
-
-
-
Field Detail
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
addMessageToHistory
protected void addMessageToHistory(Room room, tigase.xml.Element message, String body, tigase.xmpp.JID senderJid, String senderNickname, Date time)
-
addSubjectChangeToHistory
protected void addSubjectChangeToHistory(Room room, tigase.xml.Element message, String subject, tigase.xmpp.JID senderJid, String senderNickname, Date time)
-
afterRegistration
public void afterRegistration()
- Specified by:
afterRegistrationin interfacetigase.component.modules.InitializingModule- Overrides:
afterRegistrationin classtigase.component.modules.AbstractModule<MucContext>
-
getFeatures
public String[] getFeatures()
Method description- Returns:
-
getModuleCriteria
public tigase.criteria.Criteria getModuleCriteria()
Method description- Returns:
-
isChatStateAllowed
public boolean isChatStateAllowed()
Method description- Returns:
-
preparePacket
protected tigase.server.Packet preparePacket(String messageId, String xmlLang, tigase.xml.Element... content) throws tigase.util.TigaseStringprepException
- Throws:
tigase.util.TigaseStringprepException
-
process
public void process(tigase.server.Packet packet) throws MUCExceptionMethod description- Parameters:
packet-- Throws:
MUCException
-
sendMessagesToAllOccupants
public void sendMessagesToAllOccupants(Room room, tigase.xmpp.JID fromJID, tigase.xml.Element... content) throws tigase.util.TigaseStringprepException
- Throws:
tigase.util.TigaseStringprepException
-
sendMessagesToAllOccupants
public void sendMessagesToAllOccupants(Room room, tigase.xmpp.JID fromJID, String xmlLang, tigase.xml.Element... content) throws tigase.util.TigaseStringprepException
- Throws:
tigase.util.TigaseStringprepException
-
sendMessagesToAllOccupants
public void sendMessagesToAllOccupants(Room room, tigase.xmpp.JID fromJID, tigase.server.Packet msg) throws tigase.util.TigaseStringprepException
- Throws:
tigase.util.TigaseStringprepException
-
sendMessagesToAllOccupantsJids
public void sendMessagesToAllOccupantsJids(Room room, tigase.xmpp.JID fromJID, tigase.server.Packet msg) throws tigase.util.TigaseStringprepException
- Throws:
tigase.util.TigaseStringprepException
-
-