public class MucModule extends AbstractStanzaModule<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 |
context, log| Constructor and Description |
|---|
MucModule() |
MucModule(AbstractRoomsManager cm) |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeRegister()
Called just before registration module in XmppModulesManager
.
|
protected boolean |
checkElement(Element element) |
void |
declineInvitation(MucModule.Invitation invitation,
String reasonMsg) |
Criteria |
getCriteria()
Criteria
|
String[] |
getFeatures()
Returns features what are implemented by Module.
|
Room |
getRoom(BareJID roomJid) |
void |
getRoomConfiguration(Room room,
AsyncCallback asyncCallback) |
Collection<Room> |
getRooms() |
void |
invite(Room room,
JID inviteeJID,
String reason)
Sends mediated invitation.
|
void |
inviteDirectly(Room room,
JID inviteeJID,
String reason,
String threadId) |
boolean |
isRoomRegistered(BareJID roomJid) |
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(SessionObject sessionObject,
Connector.State oldState,
Connector.State newState) |
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 message) |
protected void |
processPresence(Presence element) |
void |
setRoomConfiguration(Room room,
JabberDataElement configuration,
AsyncCallback asyncCallback) |
afterRegister, beforeUnregister, fireEvent, getFirstChild, process, setContext, write, write, writepublic static final String OWNER_XMLNS
public static final Integer STATUS_NEW_NICKNAME
public MucModule()
public MucModule(AbstractRoomsManager cm)
public void beforeRegister()
InitializingModulebeforeRegister in interface InitializingModulebeforeRegister in class AbstractStanzaModule<Stanza>protected boolean checkElement(Element element) throws XMLException
XMLExceptionpublic void declineInvitation(MucModule.Invitation invitation, String reasonMsg) throws JaxmppException
JaxmppExceptionpublic Criteria getCriteria()
XmppModulepublic String[] getFeatures()
XmppModuleReturns features what are implemented by Module.
public void getRoomConfiguration(Room room, AsyncCallback asyncCallback) throws JaxmppException
JaxmppExceptionpublic 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 boolean isRoomRegistered(BareJID roomJid)
public Room join(MucModule.Invitation invitation, String nickname) throws JaxmppException
JaxmppExceptionpublic Room join(String roomName, String mucServer, String nickname) throws JaxmppException
JaxmppExceptionpublic Room join(String roomName, String mucServer, String nickname, String password) throws JaxmppException
JaxmppExceptionpublic void leave(Room room) throws JaxmppException
JaxmppExceptionprotected void onConnectorStateChanged(SessionObject sessionObject, Connector.State oldState, Connector.State newState) throws JaxmppException
JaxmppExceptionprotected void onNetworkDisconnected()
throws JaxmppException
JaxmppExceptionprotected 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 message) throws JaxmppException
JaxmppExceptionprotected void processPresence(Presence element) throws JaxmppException
JaxmppExceptionpublic void setRoomConfiguration(Room room, JabberDataElement configuration, AsyncCallback asyncCallback) throws JaxmppException
JaxmppExceptionCopyright © 2006–2018 Tigase. All rights reserved.