|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.transport.xmpp.AbstractXmppConversation
org.mule.transport.xmpp.XmppMultiUserChatConversation
public class XmppMultiUserChatConversation
| Field Summary |
|---|
| Fields inherited from class org.mule.transport.xmpp.AbstractXmppConversation |
|---|
connection, logger, packetCollector, recipient |
| Constructor Summary | |
|---|---|
XmppMultiUserChatConversation(ImmutableEndpoint endpoint)
|
|
| Method Summary | |
|---|---|
protected org.jivesoftware.smack.PacketCollector |
createPacketCollector()
This implementation returns null as we override receive() and
receive(long). |
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()
|
| Methods inherited from class org.mule.transport.xmpp.AbstractXmppConversation |
|---|
connect, createPacketFilter, disconnect |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XmppMultiUserChatConversation(ImmutableEndpoint endpoint)
| Method Detail |
|---|
protected void doConnect()
throws ConnectException
AbstractXmppConversation
doConnect in class AbstractXmppConversationConnectException
protected void joinChat()
throws ConnectException
ConnectException
protected void tryToJoinChat()
throws org.jivesoftware.smack.XMPPException
org.jivesoftware.smack.XMPPExceptionprotected boolean roomDoesNotExist(org.jivesoftware.smack.XMPPException exception)
protected void createRoom()
throws ConnectException
ConnectExceptionprotected void doDisconnect()
AbstractXmppConversation
doDisconnect in class AbstractXmppConversationprotected org.jivesoftware.smack.PacketCollector createPacketCollector()
null as we override receive() and
receive(long).
createPacketCollector in class AbstractXmppConversationPacketCollector that can be used to retrieve messages for this
conversation.
public void dispatch(org.jivesoftware.smack.packet.Message message)
throws org.jivesoftware.smack.XMPPException
XmppConversationmessage via the Jabber conversation.
org.jivesoftware.smack.XMPPExceptionpublic org.jivesoftware.smack.packet.Message receive()
XmppConversation
receive in interface XmppConversationreceive in class AbstractXmppConversationpublic org.jivesoftware.smack.packet.Message receive(long timeout)
XmppConversationtimeout occurs.
receive in interface XmppConversationreceive in class AbstractXmppConversationMessage next available message or null if timeout occurred.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||