tigase.jaxmpp.core.client.xmpp.modules.muc
Class MucModule
java.lang.Object
tigase.jaxmpp.core.client.xmpp.modules.AbstractStanzaModule<Stanza>
tigase.jaxmpp.core.client.xmpp.modules.muc.MucModule
- All Implemented Interfaces:
- XmppModule
public class MucModule
- extends AbstractStanzaModule<Stanza>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
MucModule
public MucModule(Observable parentObservable,
SessionObject sessionObject,
PacketWriter packetWriter)
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.