org.eclipse.ecf.example.clients
Class XMPPChatRoomClient

java.lang.Object
  extended by org.eclipse.ecf.example.clients.XMPPChatRoomClient

public class XMPPChatRoomClient
extends java.lang.Object


Field Summary
protected static java.lang.String CONTAINER_TYPE
           
 
Constructor Summary
XMPPChatRoomClient()
           
XMPPChatRoomClient(IMessageReceiver receiver)
           
 
Method Summary
 void close()
           
 void connect(java.lang.String account, java.lang.String password)
           
 IChatRoomContainer createChatRoom(java.lang.String chatRoomName)
           
protected  IContainer createContainer()
           
 IChatRoomInfo getChatRoomInfo()
           
protected  IContainer getContainer()
           
protected  Namespace getNamespace()
           
protected  IPresenceContainerAdapter getPresenceContainer()
           
 boolean isConnected()
           
 void sendMessage(java.lang.String jid, java.lang.String msg)
           
protected  void setupPresenceAdapter()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTAINER_TYPE

protected static java.lang.String CONTAINER_TYPE
Constructor Detail

XMPPChatRoomClient

public XMPPChatRoomClient()

XMPPChatRoomClient

public XMPPChatRoomClient(IMessageReceiver receiver)
Method Detail

createContainer

protected IContainer createContainer()
                              throws ECFException
Throws:
ECFException

getContainer

protected IContainer getContainer()

getNamespace

protected Namespace getNamespace()

setupPresenceAdapter

protected void setupPresenceAdapter()

getPresenceContainer

protected IPresenceContainerAdapter getPresenceContainer()

connect

public void connect(java.lang.String account,
                    java.lang.String password)
             throws ECFException
Throws:
ECFException

createChatRoom

public IChatRoomContainer createChatRoom(java.lang.String chatRoomName)
                                  throws java.lang.Exception
Throws:
java.lang.Exception

getChatRoomInfo

public IChatRoomInfo getChatRoomInfo()

sendMessage

public void sendMessage(java.lang.String jid,
                        java.lang.String msg)

isConnected

public boolean isConnected()

close

public void close()