public class XmppChatConversation extends AbstractXmppConversation
XmppConversation
implementation that sends messages via Chat
connection, logger, packetCollector, recipient
Constructor and Description |
---|
XmppChatConversation(ImmutableEndpoint endpoint) |
Modifier and Type | Method and Description |
---|---|
protected org.jivesoftware.smack.filter.PacketFilter |
createPacketFilter() |
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.
|
addPacketListener, connect, connect, createPacketCollector, disconnect, receive, receive, removePacketListener
public XmppChatConversation(ImmutableEndpoint endpoint)
protected void doConnect()
AbstractXmppConversation
doConnect
in class AbstractXmppConversation
protected org.jivesoftware.smack.filter.PacketFilter createPacketFilter()
createPacketFilter
in class AbstractXmppConversation
PacketFilter
instance that matches the desired message type and recipient
for this conversation.protected void doDisconnect()
AbstractXmppConversation
doDisconnect
in class AbstractXmppConversation
public void dispatch(org.jivesoftware.smack.packet.Message message) throws org.jivesoftware.smack.XMPPException
XmppConversation
message
via the Jabber conversation.org.jivesoftware.smack.XMPPException
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.