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.
|
org.jivesoftware.smack.packet.MessageBuilder |
buildMessage()
Constructs a new message builder for messages send to this MUC room.
|
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()
Deprecated.
use
buildMessage() instead. |
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)
Deprecated.
use
sendMessage(MessageBuilder) instead. |
void |
sendMessage(org.jivesoftware.smack.packet.MessageBuilder messageBuilder)
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 - TODO javadoc me please
the text of the message to send.org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected.java.lang.InterruptedException - if the calling thread was interrupted.@Deprecated
public org.jivesoftware.smack.chat.Chat createPrivateChat(org.jxmpp.jid.EntityJid occupant,
org.jivesoftware.smack.chat.ChatMessageListener listener)
occupant - TODO javadoc me please
occupant unique room JID (e.g.
'darkcave@macbeth.shakespeare.lit/Paul').listener - TODO javadoc me please
the listener is a message listener that will handle messages
for the newly created chat.@Deprecated public org.jivesoftware.smack.packet.Message createMessage()
buildMessage() instead.public org.jivesoftware.smack.packet.MessageBuilder buildMessage()
@Deprecated
public void sendMessage(org.jivesoftware.smack.packet.Message message)
throws org.jivesoftware.smack.SmackException.NotConnectedException,
java.lang.InterruptedException
sendMessage(MessageBuilder) instead.message - TODO javadoc me please
the message.org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected.java.lang.InterruptedException - if the calling thread was interrupted.public void sendMessage(org.jivesoftware.smack.packet.MessageBuilder messageBuilder)
throws org.jivesoftware.smack.SmackException.NotConnectedException,
java.lang.InterruptedException
messageBuilder - the message.org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected.java.lang.InterruptedException - if the calling thread was interrupted.public org.jivesoftware.smack.packet.Message pollMessage()
public org.jivesoftware.smack.packet.Message nextMessage()
throws java.lang.InterruptedException
java.lang.InterruptedException - if the calling thread was interrupted.public org.jivesoftware.smack.packet.Message nextMessage(long timeout)
throws java.lang.InterruptedException
timeout - TODO javadoc me please
the maximum amount of time to wait for the next message.java.lang.InterruptedException - if the calling thread was interrupted.public boolean addMessageListener(org.jivesoftware.smack.MessageListener listener)
listener - TODO javadoc me please
a stanza listener.public boolean removeMessageListener(org.jivesoftware.smack.MessageListener listener)
listener - TODO javadoc me please
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 - TODO javadoc me pleasesubject - TODO javadoc me pleasecustomConfigs - TODO javadoc me pleaseoccupants - TODO javadoc me pleasejava.lang.Exception - TODO javadoc me pleasepublic void create(java.lang.String roomName,
java.util.List<org.jxmpp.jid.Jid> occupants)
throws java.lang.Exception
roomName - TODO javadoc me pleaseoccupants - TODO javadoc me pleasejava.lang.Exception - TODO javadoc me pleasepublic 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.NotConnectedException - if the XMPP connection is not connected.java.lang.InterruptedException - if the calling thread was interrupted.org.jivesoftware.smack.SmackException.NoResponseException - if there was no response from the remote entity.org.jivesoftware.smack.XMPPException.XMPPErrorException - if there was an XMPP error returned.public 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 - TODO javadoc me pleaseorg.jivesoftware.smack.SmackException.NoResponseException - if there was no response from the remote entity.org.jivesoftware.smack.XMPPException.XMPPErrorException - if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected.java.lang.InterruptedException - if the calling thread was interrupted.public 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.NoResponseException - if there was no response from the remote entity.org.jivesoftware.smack.XMPPException.XMPPErrorException - if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected.java.lang.InterruptedException - if the calling thread was interrupted.public 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 - TODO javadoc me pleaseorg.jivesoftware.smack.SmackException.NoResponseException - if there was no response from the remote entity.org.jivesoftware.smack.XMPPException.XMPPErrorException - if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected.java.lang.InterruptedException - if the calling thread was interrupted.public 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.NoResponseException - if there was no response from the remote entity.org.jivesoftware.smack.XMPPException.XMPPErrorException - if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected.java.lang.InterruptedException - if the calling thread was interrupted.public 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 - TODO javadoc me pleaseorg.jivesoftware.smack.SmackException.NoResponseException - if there was no response from the remote entity.org.jivesoftware.smack.XMPPException.XMPPErrorException - if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected.java.lang.InterruptedException - if the calling thread was interrupted.public 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.NoResponseException - if there was no response from the remote entity.org.jivesoftware.smack.XMPPException.XMPPErrorException - if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected.java.lang.InterruptedException - if the calling thread was interrupted.public 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 - TODO javadoc me pleaseorg.jivesoftware.smack.SmackException.NoResponseException - if there was no response from the remote entity.org.jivesoftware.smack.XMPPException.XMPPErrorException - if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected.java.lang.InterruptedException - if the calling thread was interrupted.public 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.NoResponseException - if there was no response from the remote entity.org.jivesoftware.smack.XMPPException.XMPPErrorException - if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected.java.lang.InterruptedException - if the calling thread was interrupted.public 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 - TODO javadoc me pleaseorg.jivesoftware.smack.SmackException.NoResponseException - if there was no response from the remote entity.org.jivesoftware.smack.XMPPException.XMPPErrorException - if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected.java.lang.InterruptedException - if the calling thread was interrupted.public 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 - TODO javadoc me pleaseorg.jivesoftware.smack.SmackException.NoResponseException - if there was no response from the remote entity.org.jivesoftware.smack.XMPPException.XMPPErrorException - if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected.java.lang.InterruptedException - if the calling thread was interrupted.public 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 - TODO javadoc me pleaseorg.jivesoftware.smack.SmackException.NoResponseException - if there was no response from the remote entity.org.jivesoftware.smack.XMPPException.XMPPErrorException - if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected.java.lang.InterruptedException - if the calling thread was interrupted.public 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 - TODO javadoc me pleasecustomConfigs - TODO javadoc me pleaseorg.jivesoftware.smack.SmackException.NoResponseException - if there was no response from the remote entity.org.jivesoftware.smack.XMPPException.XMPPErrorException - if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected.java.lang.InterruptedException - if the calling thread was interrupted.