tigase.muc.modules
Class AbstractModule

java.lang.Object
  extended by tigase.muc.modules.AbstractModule
All Implemented Interfaces:
Module
Direct Known Subclasses:
DiscoInfoModule, DiscoItemsModule, GroupchatMessageModule, MediatedInvitationModule, ModeratorModule, PresenceModule, PrivateMessageModule, RoomConfigurationModule, UniqueRoomNameModule

public abstract class AbstractModule
extends Object
implements Module

Author:
bmalkow

Field Summary
protected  MucConfig config
           
protected  Logger log
           
protected  IMucRepository repository
           
protected  ElementWriter writer
           
 
Constructor Summary
AbstractModule(MucConfig config, ElementWriter writer, IMucRepository mucRepository)
           
 
Method Summary
static tigase.xml.Element createResultIQ(tigase.xml.Element iq)
           
static String getNicknameFromJid(tigase.xmpp.JID jid)
           
 boolean isProcessedByModule(tigase.xml.Element element)
           
protected  void sendMucMessage(Room room, String recipientNickame, String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface tigase.muc.Module
getFeatures, getModuleCriteria, process
 

Field Detail

config

protected final MucConfig config

log

protected Logger log

repository

protected final IMucRepository repository

writer

protected final ElementWriter writer
Constructor Detail

AbstractModule

public AbstractModule(MucConfig config,
                      ElementWriter writer,
                      IMucRepository mucRepository)
Method Detail

createResultIQ

public static tigase.xml.Element createResultIQ(tigase.xml.Element iq)

getNicknameFromJid

public static String getNicknameFromJid(tigase.xmpp.JID jid)

isProcessedByModule

public boolean isProcessedByModule(tigase.xml.Element element)
Specified by:
isProcessedByModule in interface Module

sendMucMessage

protected void sendMucMessage(Room room,
                              String recipientNickame,
                              String message)
                       throws tigase.util.TigaseStringprepException
Throws:
tigase.util.TigaseStringprepException


Copyright © 2007-2012 Tigase. All Rights Reserved.