|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.mule.transport.xmpp.AbstractXmppConversation
public abstract class AbstractXmppConversation
Field Summary | |
---|---|
protected org.jivesoftware.smack.XMPPConnection |
connection
|
protected Log |
logger
|
protected org.jivesoftware.smack.PacketCollector |
packetCollector
|
protected String |
recipient
|
Constructor Summary | |
---|---|
AbstractXmppConversation(ImmutableEndpoint endpoint)
|
Method Summary | |
---|---|
void |
addPacketListener(org.jivesoftware.smack.PacketListener listener)
Adds listener to this conversation's XMPP connection. |
void |
connect()
Connect to the Jabber conversation, e.g. |
protected org.jivesoftware.smack.PacketCollector |
createPacketCollector()
|
protected org.jivesoftware.smack.filter.PacketFilter |
createPacketFilter()
|
void |
disconnect()
Disconnect from the Jabber conversation, e.g. |
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. |
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. |
void |
removePacketListener(org.jivesoftware.smack.PacketListener listener)
Removes listener from this conversation's XMPP connection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.mule.transport.xmpp.XmppConversation |
---|
dispatch |
Field Detail |
---|
protected final Log logger
protected org.jivesoftware.smack.XMPPConnection connection
protected String recipient
protected org.jivesoftware.smack.PacketCollector packetCollector
Constructor Detail |
---|
public AbstractXmppConversation(ImmutableEndpoint endpoint)
Method Detail |
---|
public void connect() throws ConnectException
XmppConversation
connect
in interface XmppConversation
ConnectException
protected void doConnect() throws ConnectException
ConnectException
protected org.jivesoftware.smack.PacketCollector createPacketCollector()
PacketCollector
that can be used to retrieve messages for this
conversation.protected org.jivesoftware.smack.filter.PacketFilter createPacketFilter()
PacketFilter
instance that matches the desired message type and recipient
for this conversation.public void disconnect()
XmppConversation
disconnect
in interface XmppConversation
protected void doDisconnect()
public void addPacketListener(org.jivesoftware.smack.PacketListener listener)
XmppConversation
listener
to this conversation's XMPP connection.
addPacketListener
in interface XmppConversation
public void removePacketListener(org.jivesoftware.smack.PacketListener listener)
XmppConversation
listener
from this conversation's XMPP connection.
removePacketListener
in interface XmppConversation
public org.jivesoftware.smack.packet.Message receive(long timeout)
XmppConversation
timeout
occurs.
receive
in interface XmppConversation
Message
next available message or null
if timeout occurred.public org.jivesoftware.smack.packet.Message receive()
XmppConversation
receive
in interface XmppConversation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |