tigase.jaxmpp.core.client.xmpp.modules.muc
Class MucModule

java.lang.Object
  extended by tigase.jaxmpp.core.client.xmpp.modules.AbstractStanzaModule<Stanza>
      extended by tigase.jaxmpp.core.client.xmpp.modules.muc.MucModule
All Implemented Interfaces:
XmppModule

public class MucModule
extends AbstractStanzaModule<Stanza>


Nested Class Summary
static class MucModule.MucEvent
           
 
Field Summary
static EventType JoinRequested
           
static EventType MessageError
           
static EventType MucMessageReceived
           
static EventType NewRoomCreated
           
static EventType OccupantChangedNick
           
static EventType OccupantChangedPresence
           
static EventType OccupantComes
           
static EventType OccupantLeaved
           
static EventType PresenceError
           
static EventType RoomClosed
          Local instance of Chat Room was closed because of, for example, presence error.
static EventType StateChange
           
static Integer STATUS_NEW_NICKNAME
           
static EventType YouJoined
           
 
Fields inherited from class tigase.jaxmpp.core.client.xmpp.modules.AbstractStanzaModule
log, observable, sessionObject, writer
 
Constructor Summary
MucModule(Observable parentObservable, SessionObject sessionObject, PacketWriter packetWriter)
           
 
Method Summary
protected  boolean checkElement(Element element)
           
 void enable(Room room)
           
 Criteria getCriteria()
          Criteria
 String[] getFeatures()
           Returns features what are implemented by Module.
 Collection<Room> getRooms()
           
 Room join(String roomName, String mucServer, String nickname)
           
 Room join(String roomName, String mucServer, String nickname, String password)
           
 void leave(Room room)
           
protected  void onNetworkDisconnected()
           
 void process(Stanza element)
           
protected  void processMessage(Message element)
           
protected  void processPresence(Presence element)
           
 
Methods inherited from class tigase.jaxmpp.core.client.xmpp.modules.AbstractStanzaModule
addListener, addListener, process, removeAllListeners, removeListener, removeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JoinRequested

public static final EventType JoinRequested

MessageError

public static final EventType MessageError

MucMessageReceived

public static final EventType MucMessageReceived

NewRoomCreated

public static final EventType NewRoomCreated

OccupantChangedNick

public static final EventType OccupantChangedNick

OccupantChangedPresence

public static final EventType OccupantChangedPresence

OccupantComes

public static final EventType OccupantComes

OccupantLeaved

public static final EventType OccupantLeaved

PresenceError

public static final EventType PresenceError

RoomClosed

public static final EventType RoomClosed
Local instance of Chat Room was closed because of, for example, presence error.


StateChange

public static final EventType StateChange

STATUS_NEW_NICKNAME

public static final Integer STATUS_NEW_NICKNAME

YouJoined

public static final EventType YouJoined
Constructor Detail

MucModule

public MucModule(Observable parentObservable,
                 SessionObject sessionObject,
                 PacketWriter packetWriter)
Method Detail

checkElement

protected boolean checkElement(Element element)
                        throws XMLException
Throws:
XMLException

enable

public void enable(Room room)
            throws JaxmppException
Throws:
JaxmppException

getCriteria

public Criteria getCriteria()
Description copied from interface: XmppModule
Criteria

Returns:

getFeatures

public String[] getFeatures()
Description copied from interface: XmppModule

Returns features what are implemented by Module.

See Service Discovery Features

Returns:
array of features

getRooms

public Collection<Room> getRooms()

join

public Room join(String roomName,
                 String mucServer,
                 String nickname)
          throws XMLException,
                 JaxmppException
Throws:
XMLException
JaxmppException

join

public Room join(String roomName,
                 String mucServer,
                 String nickname,
                 String password)
          throws XMLException,
                 JaxmppException
Throws:
XMLException
JaxmppException

leave

public void leave(Room room)
           throws XMLException,
                  JaxmppException
Throws:
XMLException
JaxmppException

onNetworkDisconnected

protected void onNetworkDisconnected()
                              throws XMLException,
                                     JaxmppException
Throws:
XMLException
JaxmppException

process

public void process(Stanza element)
             throws JaxmppException
Specified by:
process in class AbstractStanzaModule<Stanza>
Throws:
JaxmppException

processMessage

protected void processMessage(Message element)
                       throws JaxmppException
Throws:
JaxmppException

processPresence

protected void processPresence(Presence element)
                        throws JaxmppException
Throws:
JaxmppException


Copyright © 2006-2012 Tigase. All Rights Reserved.