kaos.notification.im
Class JabberConnect

java.lang.Object
  extended by kaos.notification.im.JabberConnect

public class JabberConnect
extends java.lang.Object

JabberConnect


Field Summary
 JabberSession _session
           
 java.lang.String error
           
 Presence_Tree roster
           
 java.lang.String the_password
           
 int the_port
           
 java.lang.String the_server
           
 java.lang.String the_user_name
           
 
Constructor Summary
JabberConnect(java.lang.String name, java.lang.String server, java.lang.String password, int port)
           
 
Method Summary
 void addToRoster(java.lang.String jgroup, java.lang.String nJID, java.lang.String juname)
           
 void connectToJabber(JabberListenerProvider listenerProvider)
           
 java.lang.String get_presence_of(java.lang.String ugroup, java.lang.String uname)
           
 java.lang.String get_the_password()
           
 int get_the_port()
           
 java.lang.String get_the_server()
           
 java.lang.String get_the_user_name()
           
 java.lang.String getOnlineState(java.lang.String jid)
           
 void logMessage(java.lang.String message, int indentLevel)
          Utility for writing terminal messages.
 void retrieveServices()
           
 void sendMessageToUser(java.lang.String to, java.lang.String from, java.lang.String subject, java.lang.String message, java.lang.String type)
           
 void set_the_password(java.lang.String password)
           
 void set_the_port(int port)
           
 void set_the_server(java.lang.String server)
           
 void set_the_user_name(java.lang.String name)
           
 void setScreenTarget(javax.swing.JTextArea new_screen)
           
 void subscribeTo(java.lang.String nJID)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_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
Constructor Detail

JabberConnect

public JabberConnect(java.lang.String name,
                     java.lang.String server,
                     java.lang.String password,
                     int port)
Method Detail

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 -