public class MucModule
extends tigase.jaxmpp.core.client.xmpp.modules.AbstractStanzaModule<tigase.jaxmpp.core.client.xmpp.stanzas.Stanza>
| Modifier and Type | Class and Description |
|---|---|
class |
MucModule.DirectInvitation |
class |
MucModule.Invitation |
static interface |
MucModule.InvitationDeclinedHandler |
static interface |
MucModule.InvitationReceivedHandler |
static interface |
MucModule.JoinRequestedHandler |
class |
MucModule.MediatedInvitation |
static interface |
MucModule.MessageErrorHandler |
static interface |
MucModule.MucMessageReceivedHandler |
static interface |
MucModule.NewRoomCreatedHandler |
static interface |
MucModule.OccupantChangedNickHandler |
static interface |
MucModule.OccupantChangedPresenceHandler |
static interface |
MucModule.OccupantComesHandler |
static interface |
MucModule.OccupantLeavedHandler |
static interface |
MucModule.PresenceErrorHandler |
static interface |
MucModule.RoomClosedHandler
Local instance of Chat Room was closed because of, for example, presence
error.
|
static class |
MucModule.RoomConfgurationAsyncCallback |
static interface |
MucModule.StateChangeHandler |
static interface |
MucModule.YouJoinedHandler |
| Modifier and Type | Field and Description |
|---|---|
static String |
OWNER_XMLNS |
static Integer |
STATUS_NEW_NICKNAME |
| Constructor and Description |
|---|
MucModule() |
MucModule(AbstractRoomsManager cm) |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeRegister() |
protected boolean |
checkElement(tigase.jaxmpp.core.client.xml.Element element) |
void |
declineInvitation(MucModule.Invitation invitation,
String reasonMsg) |
tigase.jaxmpp.core.client.criteria.Criteria |
getCriteria() |
String[] |
getFeatures() |
Room |
getRoom(tigase.jaxmpp.core.client.BareJID roomJid) |
void |
getRoomConfiguration(Room room,
tigase.jaxmpp.core.client.AsyncCallback asyncCallback) |
Collection<Room> |
getRooms() |
void |
invite(Room room,
tigase.jaxmpp.core.client.JID inviteeJID,
String reason)
Sends mediated invitation.
|
void |
inviteDirectly(Room room,
tigase.jaxmpp.core.client.JID inviteeJID,
String reason,
String threadId) |
Room |
join(MucModule.Invitation 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 |
onConnectorStateChanged(tigase.jaxmpp.core.client.SessionObject sessionObject,
tigase.jaxmpp.core.client.Connector.State oldState,
tigase.jaxmpp.core.client.Connector.State newState) |
protected void |
onNetworkDisconnected() |
protected void |
onSessionObjectCleared(tigase.jaxmpp.core.client.SessionObject sessionObject,
Set<tigase.jaxmpp.core.client.SessionObject.Scope> scopes) |
void |
process(tigase.jaxmpp.core.client.xmpp.stanzas.Stanza element) |
protected void |
processDirectInvitationMessage(tigase.jaxmpp.core.client.xmpp.stanzas.Message message) |
protected void |
processInvitationDeclinedMessage(tigase.jaxmpp.core.client.xmpp.stanzas.Message message) |
protected void |
processMediatedInvitationMessage(tigase.jaxmpp.core.client.xmpp.stanzas.Message message) |
protected void |
processMessage(tigase.jaxmpp.core.client.xmpp.stanzas.Message message) |
protected void |
processPresence(tigase.jaxmpp.core.client.xmpp.stanzas.Presence element) |
void |
setRoomConfiguration(Room room,
tigase.jaxmpp.core.client.xmpp.forms.JabberDataElement configuration,
tigase.jaxmpp.core.client.AsyncCallback asyncCallback) |
public static final String OWNER_XMLNS
public static final Integer STATUS_NEW_NICKNAME
public MucModule()
public MucModule(AbstractRoomsManager cm)
public void beforeRegister()
beforeRegister in interface tigase.jaxmpp.core.client.xmpp.modules.InitializingModulebeforeRegister in class tigase.jaxmpp.core.client.xmpp.modules.AbstractStanzaModule<tigase.jaxmpp.core.client.xmpp.stanzas.Stanza>protected boolean checkElement(tigase.jaxmpp.core.client.xml.Element element)
throws tigase.jaxmpp.core.client.xml.XMLException
tigase.jaxmpp.core.client.xml.XMLExceptionpublic void declineInvitation(MucModule.Invitation invitation, String reasonMsg) throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic tigase.jaxmpp.core.client.criteria.Criteria getCriteria()
public String[] getFeatures()
public Collection<Room> getRooms()
public Room getRoom(tigase.jaxmpp.core.client.BareJID roomJid)
public void invite(Room room, tigase.jaxmpp.core.client.JID inviteeJID, String reason) throws tigase.jaxmpp.core.client.exceptions.JaxmppException
room - MUC roominviteeJID - invitee JabberIDreason - reason descriptiontigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void inviteDirectly(Room room, tigase.jaxmpp.core.client.JID inviteeJID, String reason, String threadId) throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic Room join(MucModule.Invitation invitation, String nickname) throws tigase.jaxmpp.core.client.xml.XMLException, tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.xml.XMLExceptiontigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic Room join(String roomName, String mucServer, String nickname) throws tigase.jaxmpp.core.client.xml.XMLException, tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.xml.XMLExceptiontigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic Room join(String roomName, String mucServer, String nickname, String password) throws tigase.jaxmpp.core.client.xml.XMLException, tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.xml.XMLExceptiontigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void leave(Room room) throws tigase.jaxmpp.core.client.xml.XMLException, tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.xml.XMLExceptiontigase.jaxmpp.core.client.exceptions.JaxmppExceptionprotected void onConnectorStateChanged(tigase.jaxmpp.core.client.SessionObject sessionObject,
tigase.jaxmpp.core.client.Connector.State oldState,
tigase.jaxmpp.core.client.Connector.State newState)
throws tigase.jaxmpp.core.client.xml.XMLException,
tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.xml.XMLExceptiontigase.jaxmpp.core.client.exceptions.JaxmppExceptionprotected void onNetworkDisconnected()
throws tigase.jaxmpp.core.client.xml.XMLException,
tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.xml.XMLExceptiontigase.jaxmpp.core.client.exceptions.JaxmppExceptionprotected void onSessionObjectCleared(tigase.jaxmpp.core.client.SessionObject sessionObject,
Set<tigase.jaxmpp.core.client.SessionObject.Scope> scopes)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void process(tigase.jaxmpp.core.client.xmpp.stanzas.Stanza element)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
process in class tigase.jaxmpp.core.client.xmpp.modules.AbstractStanzaModule<tigase.jaxmpp.core.client.xmpp.stanzas.Stanza>tigase.jaxmpp.core.client.exceptions.JaxmppExceptionprotected void processDirectInvitationMessage(tigase.jaxmpp.core.client.xmpp.stanzas.Message message)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionprotected void processInvitationDeclinedMessage(tigase.jaxmpp.core.client.xmpp.stanzas.Message message)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionprotected void processMediatedInvitationMessage(tigase.jaxmpp.core.client.xmpp.stanzas.Message message)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionprotected void processMessage(tigase.jaxmpp.core.client.xmpp.stanzas.Message message)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionprotected void processPresence(tigase.jaxmpp.core.client.xmpp.stanzas.Presence element)
throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void getRoomConfiguration(Room room, tigase.jaxmpp.core.client.AsyncCallback asyncCallback) throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionpublic void setRoomConfiguration(Room room, tigase.jaxmpp.core.client.xmpp.forms.JabberDataElement configuration, tigase.jaxmpp.core.client.AsyncCallback asyncCallback) throws tigase.jaxmpp.core.client.exceptions.JaxmppException
tigase.jaxmpp.core.client.exceptions.JaxmppExceptionCopyright © 2006–2017 Tigase. All rights reserved.