org.jcoderz.phoenix.jabber
Class Jabber

java.lang.Object
  extended by org.jcoderz.phoenix.jabber.Jabber

public final class Jabber
extends Object

Simply sends a jabber message in a jabber group.

To setup different than the default connection call JabberConnection.getInstance().setup(...) prior the first call to say().

This implementation tries to establish a static connection to a group chat and re-use this connection for further messages.

By design there is only one connection per VM/classloader possible.

Author:
Andreas Mandel

Method Summary
static void main(String[] args)
          Shortcut to send message directly from the command line.
static void say(String msg)
          Sends the given text message to the GroupChat.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

main

public static void main(String[] args)
Shortcut to send message directly from the command line. TODO: Allow different chat server.

Parameters:
args - the message to send.

say

public static void say(String msg)
Sends the given text message to the GroupChat.

Parameters:
msg - the message to send.
Throws:
RuntimeException - if sending fails (even after retry).


Copyright 2007 The jCoderZ Project.