public class XmppMultiUserChatConversation extends AbstractXmppConversation
connection, logger, packetCollector, recipient
Constructor and Description |
---|
XmppMultiUserChatConversation(ImmutableEndpoint endpoint) |
Modifier and Type | Method and Description |
---|---|
protected org.jivesoftware.smack.PacketCollector |
createPacketCollector()
|
protected void |
createRoom() |
void |
dispatch(org.jivesoftware.smack.packet.Message message)
Asynchronously dispatch
message via the Jabber conversation. |
protected void |
doConnect()
Subclasses can override this method to create their conversation specific connection.
|
protected void |
doDisconnect()
Subclasses can override this method to perform custom disconnect actions.
|
protected void |
joinChat() |
org.jivesoftware.smack.packet.Message |
receive()
Wait for a response on this conversation until a message arrives.
|
org.jivesoftware.smack.packet.Message |
receive(long timeout)
Wait for a response on this conversation until
timeout occurs. |
protected boolean |
roomDoesNotExist(org.jivesoftware.smack.XMPPException exception) |
protected void |
tryToJoinChat() |
addPacketListener, connect, connect, createPacketFilter, disconnect, removePacketListener
public XmppMultiUserChatConversation(ImmutableEndpoint endpoint)
protected void doConnect() throws ConnectException
AbstractXmppConversation
doConnect
in class AbstractXmppConversation
ConnectException
protected void joinChat() throws ConnectException
ConnectException
protected void tryToJoinChat() throws org.jivesoftware.smack.XMPPException
org.jivesoftware.smack.XMPPException
protected boolean roomDoesNotExist(org.jivesoftware.smack.XMPPException exception)
protected void createRoom() throws ConnectException
ConnectException
protected void doDisconnect()
AbstractXmppConversation
doDisconnect
in class AbstractXmppConversation
protected org.jivesoftware.smack.PacketCollector createPacketCollector()
createPacketCollector
in class AbstractXmppConversation
PacketCollector
that can be used to retrieve messages for this
conversation.public void dispatch(org.jivesoftware.smack.packet.Message message) throws org.jivesoftware.smack.XMPPException
XmppConversation
message
via the Jabber conversation.org.jivesoftware.smack.XMPPException
public org.jivesoftware.smack.packet.Message receive()
XmppConversation
receive
in interface XmppConversation
receive
in class AbstractXmppConversation
public org.jivesoftware.smack.packet.Message receive(long timeout)
XmppConversation
timeout
occurs.receive
in interface XmppConversation
receive
in class AbstractXmppConversation
Message
next available message or null
if timeout occurred.Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.