Package tigase.muc.modules
Class RegisterModule
java.lang.Object
tigase.component.modules.AbstractModule
tigase.muc.modules.AbstractMucModule
tigase.muc.modules.RegisterModule
- All Implemented Interfaces:
tigase.component.modules.Module
@Bean(name="register",
parent=MUCComponent.class,
active=true)
public class RegisterModule
extends AbstractMucModule
Module provides ability to register nicknames in MUC rooms and use "send to offline" feature allowing users have their
group chat messages delivered to their XMPP server even when they are offline.
-
Field Summary
Fields inherited from class tigase.component.modules.AbstractModule
eventBus, log, writerFields inherited from interface tigase.component.modules.Module
EMPTY_FEATURES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidcheckPermission(Room room, tigase.xmpp.jid.JID jid) String[]tigase.criteria.Criteriaprotected RoomgetRoom(tigase.xmpp.jid.BareJID roomJID) voidprocess(tigase.server.Packet packet) protected voidprocessGet(tigase.server.Packet packet) protected voidprocessSet(tigase.server.Packet packet) Methods inherited from class tigase.muc.modules.AbstractMucModule
createResultIQ, getNicknameFromJid, sendMucMessageMethods 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
-
Constructor Details
-
RegisterModule
public RegisterModule()
-
-
Method Details
-
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.ComponentExceptiontigase.util.stringprep.TigaseStringprepException
-
processGet
protected void processGet(tigase.server.Packet packet) throws tigase.component.exceptions.RepositoryException, MUCException - Throws:
tigase.component.exceptions.RepositoryExceptionMUCException
-
processSet
protected void processSet(tigase.server.Packet packet) throws tigase.component.exceptions.RepositoryException, MUCException - Throws:
tigase.component.exceptions.RepositoryExceptionMUCException
-
getRoom
protected Room getRoom(tigase.xmpp.jid.BareJID roomJID) throws MUCException, tigase.component.exceptions.RepositoryException - Throws:
MUCExceptiontigase.component.exceptions.RepositoryException
-
checkPermission
- Throws:
MUCException
-
addForm
-