Package tigase.muc.modules
Class IqStanzaForwarderModule
- java.lang.Object
-
- tigase.component.modules.AbstractModule
-
- tigase.muc.modules.AbstractMucModule
-
- tigase.muc.modules.IqStanzaForwarderModule
-
- All Implemented Interfaces:
tigase.component.modules.Module
@Bean(name="iqforwarder", active=true) public class IqStanzaForwarderModule extends AbstractMucModule
- Author:
- bmalkow
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ID
-
Constructor Summary
Constructors Constructor Description IqStanzaForwarderModule()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
checkIfProcessed(tigase.xml.Element element)
protected void
forwardPacket(tigase.server.Packet packet, Room room, java.lang.String senderNickname, tigase.xmpp.jid.JID senderJID, java.lang.String recipientNickname, boolean isRequest)
protected void
forwardPacket(tigase.server.Packet packet, tigase.xmpp.jid.BareJID roomJID, java.lang.String senderNickname, tigase.xmpp.jid.JID recipientJid, java.lang.String id)
protected static java.lang.String
generateJidShortcut(tigase.xmpp.jid.JID jid)
java.lang.String[]
getFeatures()
tigase.criteria.Criteria
getModuleCriteria()
protected boolean
isRequest(tigase.server.Packet packet)
void
process(tigase.server.Packet packet)
-
Methods inherited from class tigase.muc.modules.AbstractMucModule
createResultIQ, getNicknameFromJid, sendMucMessage
-
Methods inherited from class tigase.component.modules.AbstractModule
fireEvent, getEventBus, getWriter, setEventBus, setWriter, write, write
-
-
-
-
Field Detail
-
ID
public static final java.lang.String ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getFeatures
public java.lang.String[] getFeatures()
-
getModuleCriteria
public tigase.criteria.Criteria getModuleCriteria()
-
process
public void process(tigase.server.Packet packet) throws tigase.component.exceptions.ComponentException, tigase.util.stringprep.TigaseStringprepException
- Throws:
tigase.component.exceptions.ComponentException
tigase.util.stringprep.TigaseStringprepException
-
isRequest
protected boolean isRequest(tigase.server.Packet packet) throws MUCException
- Throws:
MUCException
-
generateJidShortcut
protected static java.lang.String generateJidShortcut(tigase.xmpp.jid.JID jid) throws tigase.component.exceptions.ComponentException
- Throws:
tigase.component.exceptions.ComponentException
-
forwardPacket
protected void forwardPacket(tigase.server.Packet packet, Room room, java.lang.String senderNickname, tigase.xmpp.jid.JID senderJID, java.lang.String recipientNickname, boolean isRequest) throws tigase.component.exceptions.ComponentException, tigase.util.stringprep.TigaseStringprepException
- Throws:
tigase.component.exceptions.ComponentException
tigase.util.stringprep.TigaseStringprepException
-
forwardPacket
protected void forwardPacket(tigase.server.Packet packet, tigase.xmpp.jid.BareJID roomJID, java.lang.String senderNickname, tigase.xmpp.jid.JID recipientJid, java.lang.String id) throws tigase.util.stringprep.TigaseStringprepException
- Throws:
tigase.util.stringprep.TigaseStringprepException
-
checkIfProcessed
protected boolean checkIfProcessed(tigase.xml.Element element)
-
-