|
||||||||||
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 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()
null
as we override receive()
and
receive(long)
.
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |