public class MucModule extends AbstractStanzaModule<Stanza>
| Modifier and Type | Class and Description |
|---|---|
static class |
MucModule.InvitationDeclinedEvent |
static class |
MucModule.InvitationEvent |
static class |
MucModule.MucEvent |
| Modifier and Type | Field and Description |
|---|---|
static EventType |
InvitationDeclined |
static EventType |
InvitationReceived |
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 |
log, observable, sessionObject, writer| Constructor and Description |
|---|
MucModule(Observable parentObservable,
SessionObject sessionObject,
PacketWriter packetWriter) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkElement(Element element) |
void |
declineInvitation(MucModule.InvitationEvent invitation,
String reasonMsg) |
void |
destroy(Room room) |
void |
enable(Room room) |
Criteria |
getCriteria()
Criteria
|
String[] |
getFeatures()
Returns features what are implemented by Module.
|
Collection<Room> |
getRooms() |
void |
invite(Room room,
JID inviteeJID,
String reason)
Sends mediated invitation.
|
void |
inviteDirectly(Room room,
JID inviteeJID,
String reason,
String threadId) |
Room |
join(MucModule.InvitationEvent invitation,
String nickname) |
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() |
protected void |
onSessionObjectCleared(SessionObject sessionObject,
Set<SessionObject.Scope> scopes) |
void |
process(Stanza element)
Method for processing incoming stanza.
|
protected void |
processDirectInvitationMessage(Message message) |
protected void |
processInvitationDeclinedMessage(Message message) |
protected void |
processMediatedInvitationMessage(Message message) |
protected void |
processMessage(Message element) |
protected void |
processPresence(Presence element) |
addListener, addListener, getFirstChild, process, removeAllListeners, removeListener, removeListenerpublic static final EventType InvitationDeclined
public static final EventType InvitationReceived
public static final EventType JoinRequested
public static final EventType MessageError
public static final EventType MucMessageReceived
public static final EventType NewRoomCreated
public static final EventType OccupantChangedNick
public static final EventType OccupantChangedPresence
public static final EventType OccupantComes
public static final EventType OccupantLeaved
public static final EventType PresenceError
public static final EventType RoomClosed
public static final EventType StateChange
public static final Integer STATUS_NEW_NICKNAME
public static final EventType YouJoined
public MucModule(Observable parentObservable, SessionObject sessionObject, PacketWriter packetWriter)
protected boolean checkElement(Element element) throws XMLException
XMLExceptionpublic void declineInvitation(MucModule.InvitationEvent invitation, String reasonMsg) throws JaxmppException
JaxmppExceptionpublic void destroy(Room room) throws XMLException, JaxmppException
XMLExceptionJaxmppExceptionpublic void enable(Room room) throws JaxmppException
JaxmppExceptionpublic Criteria getCriteria()
XmppModulepublic String[] getFeatures()
XmppModuleReturns features what are implemented by Module.
public Collection<Room> getRooms()
public void invite(Room room, JID inviteeJID, String reason) throws JaxmppException
room - MUC roominviteeJID - invitee JabberIDreason - reason descriptionJaxmppExceptionpublic void inviteDirectly(Room room, JID inviteeJID, String reason, String threadId) throws JaxmppException
JaxmppExceptionpublic Room join(MucModule.InvitationEvent invitation, String nickname) throws XMLException, JaxmppException
XMLExceptionJaxmppExceptionpublic Room join(String roomName, String mucServer, String nickname) throws XMLException, JaxmppException
XMLExceptionJaxmppExceptionpublic Room join(String roomName, String mucServer, String nickname, String password) throws XMLException, JaxmppException
XMLExceptionJaxmppExceptionpublic void leave(Room room) throws XMLException, JaxmppException
XMLExceptionJaxmppExceptionprotected void onNetworkDisconnected()
throws XMLException,
JaxmppException
XMLExceptionJaxmppExceptionprotected void onSessionObjectCleared(SessionObject sessionObject, Set<SessionObject.Scope> scopes) throws JaxmppException
JaxmppExceptionpublic void process(Stanza element) throws JaxmppException
AbstractStanzaModuleprocess in class AbstractStanzaModule<Stanza>JaxmppExceptionprotected void processDirectInvitationMessage(Message message) throws JaxmppException
JaxmppExceptionprotected void processInvitationDeclinedMessage(Message message) throws JaxmppException
JaxmppExceptionprotected void processMediatedInvitationMessage(Message message) throws JaxmppException
JaxmppExceptionprotected void processMessage(Message element) throws JaxmppException
JaxmppExceptionprotected void processPresence(Presence element) throws JaxmppException
JaxmppExceptionCopyright © 2006–2014 Tigase. All rights reserved.