|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.transport.xmpp.AbstractXmppConversation
public abstract class AbstractXmppConversation
| Field Summary | |
|---|---|
protected org.jivesoftware.smack.XMPPConnection |
connection
|
protected org.apache.commons.logging.Log |
logger
|
protected org.jivesoftware.smack.PacketCollector |
packetCollector
|
protected String |
recipient
|
| Constructor Summary | |
|---|---|
AbstractXmppConversation(org.mule.api.endpoint.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 org.apache.commons.logging.Log logger
protected org.jivesoftware.smack.XMPPConnection connection
protected String recipient
protected org.jivesoftware.smack.PacketCollector packetCollector
| Constructor Detail |
|---|
public AbstractXmppConversation(org.mule.api.endpoint.ImmutableEndpoint endpoint)
| Method Detail |
|---|
public void connect()
throws org.mule.transport.ConnectException
XmppConversation
connect in interface XmppConversationorg.mule.transport.ConnectException
protected void doConnect()
throws org.mule.transport.ConnectException
org.mule.transport.ConnectExceptionprotected 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 XmppConversationprotected void doDisconnect()
public void addPacketListener(org.jivesoftware.smack.PacketListener listener)
XmppConversationlistener to this conversation's XMPP connection.
addPacketListener in interface XmppConversationpublic void removePacketListener(org.jivesoftware.smack.PacketListener listener)
XmppConversationlistener from this conversation's XMPP connection.
removePacketListener in interface XmppConversationpublic org.jivesoftware.smack.packet.Message receive(long timeout)
XmppConversationtimeout occurs.
receive in interface XmppConversationMessage 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 | |||||||||