kaos.notification.im
Class JabberConnect
java.lang.Object
kaos.notification.im.JabberConnect
public class JabberConnect
- extends java.lang.Object
JabberConnect
Constructor Summary |
JabberConnect(java.lang.String name,
java.lang.String server,
java.lang.String password,
int port)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_session
public JabberSession _session
the_user_name
public java.lang.String the_user_name
the_password
public java.lang.String the_password
the_server
public java.lang.String the_server
the_port
public int the_port
error
public java.lang.String error
roster
public Presence_Tree roster
JabberConnect
public JabberConnect(java.lang.String name,
java.lang.String server,
java.lang.String password,
int port)
setScreenTarget
public void setScreenTarget(javax.swing.JTextArea new_screen)
set_the_user_name
public void set_the_user_name(java.lang.String name)
get_the_user_name
public java.lang.String get_the_user_name()
set_the_server
public void set_the_server(java.lang.String server)
get_the_server
public java.lang.String get_the_server()
set_the_password
public void set_the_password(java.lang.String password)
get_the_password
public java.lang.String get_the_password()
set_the_port
public void set_the_port(int port)
get_the_port
public int get_the_port()
connectToJabber
public void connectToJabber(JabberListenerProvider listenerProvider)
throws java.net.UnknownHostException,
ConnectionFailedException,
SendMessageFailedException
- Throws:
java.net.UnknownHostException
ConnectionFailedException
SendMessageFailedException
sendMessageToUser
public void sendMessageToUser(java.lang.String to,
java.lang.String from,
java.lang.String subject,
java.lang.String message,
java.lang.String type)
addToRoster
public void addToRoster(java.lang.String jgroup,
java.lang.String nJID,
java.lang.String juname)
getOnlineState
public java.lang.String getOnlineState(java.lang.String jid)
get_presence_of
public java.lang.String get_presence_of(java.lang.String ugroup,
java.lang.String uname)
subscribeTo
public void subscribeTo(java.lang.String nJID)
retrieveServices
public void retrieveServices()
logMessage
public void logMessage(java.lang.String message,
int indentLevel)
- Utility for writing terminal messages. Identifies the agent writing the message.
Synchronized to prevent interleaving of messages.
- Parameters:
message
- indentLevel
-