public class MultiUserChatLight
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
AFFILIATIONS |
static java.lang.String |
BLOCKING |
static java.lang.String |
CONFIGURATION |
static java.lang.String |
CREATE |
static java.lang.String |
DESTROY |
static java.lang.String |
INFO |
static java.lang.String |
NAMESPACE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addMessageListener(org.jivesoftware.smack.MessageListener listener)
Adds a stanza listener that will be notified of any new messages
in the group chat.
|
void |
changeAffiliations(java.util.HashMap<org.jxmpp.jid.Jid,MUCLightAffiliation> affiliations)
Change the MUC Light affiliations.
|
void |
changeRoomName(java.lang.String roomName)
Change the name of the room.
|
void |
changeSubject(java.lang.String subject)
Change the subject of the MUC Light.
|
void |
create(java.lang.String roomName,
java.util.List<org.jxmpp.jid.Jid> occupants)
Create new MUCLight.
|
void |
create(java.lang.String roomName,
java.lang.String subject,
java.util.HashMap<java.lang.String,java.lang.String> customConfigs,
java.util.List<org.jxmpp.jid.Jid> occupants)
Create new MUCLight.
|
org.jivesoftware.smack.packet.Message |
createMessage()
Creates a new Message to send to the chat room.
|
org.jivesoftware.smack.chat.Chat |
createPrivateChat(org.jxmpp.jid.EntityJid occupant,
org.jivesoftware.smack.chat.ChatMessageListener listener)
Deprecated.
|
void |
destroy()
Destroy the MUC Light.
|
java.util.HashMap<org.jxmpp.jid.Jid,MUCLightAffiliation> |
getAffiliations()
Get the MUC Light affiliations.
|
java.util.HashMap<org.jxmpp.jid.Jid,MUCLightAffiliation> |
getAffiliations(java.lang.String version)
Get the MUC Light affiliations.
|
MUCLightRoomConfiguration |
getConfiguration()
Get the MUC Light configuration.
|
MUCLightRoomConfiguration |
getConfiguration(java.lang.String version)
Get the MUC Light configuration.
|
MUCLightRoomInfo |
getFullInfo()
Get the MUC Light info.
|
MUCLightRoomInfo |
getFullInfo(java.lang.String version)
Get the MUC Light info.
|
org.jxmpp.jid.EntityJid |
getRoom()
Returns the JID of the room.
|
void |
leave()
Leave the MUCLight.
|
org.jivesoftware.smack.packet.Message |
nextMessage()
Returns the next available message in the chat.
|
org.jivesoftware.smack.packet.Message |
nextMessage(long timeout)
Returns the next available message in the chat.
|
org.jivesoftware.smack.packet.Message |
pollMessage()
Polls for and returns the next message.
|
boolean |
removeMessageListener(org.jivesoftware.smack.MessageListener listener)
Removes a stanza listener that was being notified of any new
messages in the MUCLight.
|
void |
sendMessage(org.jivesoftware.smack.packet.Message message)
Sends a Message to the chat room.
|
void |
sendMessage(java.lang.String text)
Sends a message to the chat room.
|
void |
setRoomConfigs(java.util.HashMap<java.lang.String,java.lang.String> customConfigs)
Set the room configurations.
|
void |
setRoomConfigs(java.lang.String roomName,
java.util.HashMap<java.lang.String,java.lang.String> customConfigs)
Set the room configurations.
|
java.lang.String |
toString() |
public static final java.lang.String NAMESPACE
public static final java.lang.String AFFILIATIONS
public static final java.lang.String INFO
public static final java.lang.String CONFIGURATION
public static final java.lang.String CREATE
public static final java.lang.String DESTROY
public static final java.lang.String BLOCKING
public org.jxmpp.jid.EntityJid getRoom()
public void sendMessage(java.lang.String text)
throws org.jivesoftware.smack.SmackException.NotConnectedException,
java.lang.InterruptedException
text - the text of the message to send.org.jivesoftware.smack.SmackException.NotConnectedExceptionjava.lang.InterruptedException@Deprecated
public org.jivesoftware.smack.chat.Chat createPrivateChat(org.jxmpp.jid.EntityJid occupant,
org.jivesoftware.smack.chat.ChatMessageListener listener)
occupant - occupant unique room JID (e.g.
'darkcave@macbeth.shakespeare.lit/Paul').listener - the listener is a message listener that will handle messages
for the newly created chat.public org.jivesoftware.smack.packet.Message createMessage()
public void sendMessage(org.jivesoftware.smack.packet.Message message)
throws org.jivesoftware.smack.SmackException.NotConnectedException,
java.lang.InterruptedException
message - the message.org.jivesoftware.smack.SmackException.NotConnectedExceptionjava.lang.InterruptedExceptionpublic org.jivesoftware.smack.packet.Message pollMessage()
public org.jivesoftware.smack.packet.Message nextMessage()
throws java.lang.InterruptedException
java.lang.InterruptedExceptionpublic org.jivesoftware.smack.packet.Message nextMessage(long timeout)
throws java.lang.InterruptedException
timeout - the maximum amount of time to wait for the next message.java.lang.InterruptedExceptionpublic boolean addMessageListener(org.jivesoftware.smack.MessageListener listener)
listener - a stanza listener.public boolean removeMessageListener(org.jivesoftware.smack.MessageListener listener)
listener - a stanza listener.public java.lang.String toString()
toString in class java.lang.Objectpublic void create(java.lang.String roomName,
java.lang.String subject,
java.util.HashMap<java.lang.String,java.lang.String> customConfigs,
java.util.List<org.jxmpp.jid.Jid> occupants)
throws java.lang.Exception
roomName - subject - customConfigs - occupants - java.lang.Exceptionpublic void create(java.lang.String roomName,
java.util.List<org.jxmpp.jid.Jid> occupants)
throws java.lang.Exception
roomName - occupants - java.lang.Exceptionpublic void leave()
throws org.jivesoftware.smack.SmackException.NotConnectedException,
java.lang.InterruptedException,
org.jivesoftware.smack.SmackException.NoResponseException,
org.jivesoftware.smack.XMPPException.XMPPErrorException
org.jivesoftware.smack.SmackException.NotConnectedExceptionjava.lang.InterruptedExceptionorg.jivesoftware.smack.SmackException.NoResponseExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionpublic MUCLightRoomInfo getFullInfo(java.lang.String version) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException
version - org.jivesoftware.smack.SmackException.NoResponseExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionjava.lang.InterruptedExceptionpublic MUCLightRoomInfo getFullInfo() throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NoResponseExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionjava.lang.InterruptedExceptionpublic MUCLightRoomConfiguration getConfiguration(java.lang.String version) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException
version - org.jivesoftware.smack.SmackException.NoResponseExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionjava.lang.InterruptedExceptionpublic MUCLightRoomConfiguration getConfiguration() throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NoResponseExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionjava.lang.InterruptedExceptionpublic java.util.HashMap<org.jxmpp.jid.Jid,MUCLightAffiliation> getAffiliations(java.lang.String version) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException
version - org.jivesoftware.smack.SmackException.NoResponseExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionjava.lang.InterruptedExceptionpublic java.util.HashMap<org.jxmpp.jid.Jid,MUCLightAffiliation> getAffiliations() throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NoResponseExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionjava.lang.InterruptedExceptionpublic void changeAffiliations(java.util.HashMap<org.jxmpp.jid.Jid,MUCLightAffiliation> affiliations) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException
affiliations - org.jivesoftware.smack.SmackException.NoResponseExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionjava.lang.InterruptedExceptionpublic void destroy()
throws org.jivesoftware.smack.SmackException.NoResponseException,
org.jivesoftware.smack.XMPPException.XMPPErrorException,
org.jivesoftware.smack.SmackException.NotConnectedException,
java.lang.InterruptedException
org.jivesoftware.smack.SmackException.NoResponseExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionjava.lang.InterruptedExceptionpublic void changeSubject(java.lang.String subject)
throws org.jivesoftware.smack.SmackException.NoResponseException,
org.jivesoftware.smack.XMPPException.XMPPErrorException,
org.jivesoftware.smack.SmackException.NotConnectedException,
java.lang.InterruptedException
subject - org.jivesoftware.smack.SmackException.NoResponseExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionjava.lang.InterruptedExceptionpublic void changeRoomName(java.lang.String roomName)
throws org.jivesoftware.smack.SmackException.NoResponseException,
org.jivesoftware.smack.XMPPException.XMPPErrorException,
org.jivesoftware.smack.SmackException.NotConnectedException,
java.lang.InterruptedException
roomName - org.jivesoftware.smack.SmackException.NoResponseExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionjava.lang.InterruptedExceptionpublic void setRoomConfigs(java.util.HashMap<java.lang.String,java.lang.String> customConfigs)
throws org.jivesoftware.smack.SmackException.NoResponseException,
org.jivesoftware.smack.XMPPException.XMPPErrorException,
org.jivesoftware.smack.SmackException.NotConnectedException,
java.lang.InterruptedException
customConfigs - org.jivesoftware.smack.SmackException.NoResponseExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionjava.lang.InterruptedExceptionpublic void setRoomConfigs(java.lang.String roomName,
java.util.HashMap<java.lang.String,java.lang.String> customConfigs)
throws org.jivesoftware.smack.SmackException.NoResponseException,
org.jivesoftware.smack.XMPPException.XMPPErrorException,
org.jivesoftware.smack.SmackException.NotConnectedException,
java.lang.InterruptedException
roomName - customConfigs - org.jivesoftware.smack.SmackException.NoResponseExceptionorg.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionjava.lang.InterruptedException