org.mule.transport.xmpp
Class JabberClient
java.lang.Object
org.mule.transport.xmpp.JabberClient
- All Implemented Interfaces:
- org.jivesoftware.smack.MessageListener, org.jivesoftware.smack.PacketListener
public class JabberClient
- extends Object
- implements org.jivesoftware.smack.PacketListener, org.jivesoftware.smack.MessageListener
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JabberClient
public JabberClient(String host,
String user,
String password)
throws Exception
- Throws:
Exception
connect
public void connect(CountDownLatch latch)
throws Exception
- Throws:
Exception
disconnect
public void disconnect()
processPacket
public void processPacket(org.jivesoftware.smack.packet.Packet packet)
- Specified by:
processPacket
in interface org.jivesoftware.smack.PacketListener
processMessage
public void processMessage(org.jivesoftware.smack.Chat chat,
org.jivesoftware.smack.packet.Message message)
- Specified by:
processMessage
in interface org.jivesoftware.smack.MessageListener
sendMessage
public void sendMessage(String recipient,
String payload)
sendChatMessage
public void sendChatMessage(String recipient,
String payload)
throws org.jivesoftware.smack.XMPPException
- Throws:
org.jivesoftware.smack.XMPPException
getReceivedMessages
public List<org.jivesoftware.smack.packet.Message> getReceivedMessages()
receive
public org.jivesoftware.smack.packet.Packet receive(long timeout)
joinGroupchat
public void joinGroupchat(String chatroom)
throws org.jivesoftware.smack.XMPPException
- Throws:
org.jivesoftware.smack.XMPPException
sendGroupchatMessage
public void sendGroupchatMessage(String text)
throws org.jivesoftware.smack.XMPPException
- Throws:
org.jivesoftware.smack.XMPPException
setReplyPayload
public void setReplyPayload(String reply)
setAutoReply
public void setAutoReply(boolean flag)
setSynchronous
public void setSynchronous(boolean flag)
setMessageLatch
public void setMessageLatch(CountDownLatch latch)
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.