public class XMPPSendReceive extends Object
| Modifier and Type | Class and Description | 
|---|---|
| static interface  | XMPPSendReceive.DISReceiveListener | 
| static interface  | XMPPSendReceive.XMPPReceiveListener | 
| Constructor and Description | 
|---|
| XMPPSendReceive(String authSvr,
               String uname,
               String pw,
               String chatSvr,
               String room)Creates a new instance of XMPPSendReceive | 
| Modifier and Type | Method and Description | 
|---|---|
| void | connect() | 
| String | createNewAccount(String username,
                String passwd,
                Properties attributes) | 
| void | disconnect() | 
| String | getAuthServer() | 
| String | getFullRoomName() | 
| String | getNickName() | 
| String | getPassword() | 
| int | getPort() | 
| String | getResourceIDSuffix() | 
| String | getRoom() | 
| String | getServer() | 
| String | getUser() | 
| boolean | isConnected() | 
| boolean | send(String text) | 
| boolean | sendPropertyAttachments(Object... objs) | 
| void | setDISListener(XMPPSendReceive.DISReceiveListener lis) | 
| void | setPort(int p) | 
| void | setXMPPListener(XMPPSendReceive.XMPPReceiveListener lis) | 
public String getRoom()
public String getAuthServer()
public String getServer()
public String getPassword()
public String getUser()
public String getNickName()
public String getFullRoomName()
public String getResourceIDSuffix()
public int getPort()
public void setPort(int p)
p - public boolean isConnected()
public void disconnect()
public String createNewAccount(String username, String passwd, Properties attributes) throws org.jivesoftware.smack.XMPPException
username - passwd - attributes - org.jivesoftware.smack.XMPPExceptionpublic void connect()
             throws org.jivesoftware.smack.XMPPException
org.jivesoftware.smack.XMPPExceptionpublic boolean sendPropertyAttachments(Object... objs) throws org.jivesoftware.smack.XMPPException
objs - org.jivesoftware.smack.XMPPExceptionpublic boolean send(String text) throws org.jivesoftware.smack.XMPPException
text - org.jivesoftware.smack.XMPPExceptionpublic void setXMPPListener(XMPPSendReceive.XMPPReceiveListener lis)
lis - public void setDISListener(XMPPSendReceive.DISReceiveListener lis)
lis -