|
||||||||||
| 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 Log |
logger
|
protected org.jivesoftware.smack.PacketCollector |
packetCollector
|
protected String |
recipient
|
| Constructor Summary | |
|---|---|
AbstractXmppConversation(ImmutableEndpoint endpoint)
|
|
| Method Summary | |
|---|---|
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. |
| 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 XmppConversationConnectException
protected void doConnect()
throws ConnectException
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 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 | |||||||||