com.caucho.xmpp
Class XmppClient

java.lang.Object
  extended by com.caucho.xmpp.XmppClient

public class XmppClient
extends java.lang.Object

XMPP protocol


Constructor Summary
XmppClient(java.net.InetAddress address, int port)
           
XmppClient(java.lang.String address, int port)
           
 
Method Summary
 void close()
           
 void connect()
           
 void connect(java.lang.String name, java.lang.String password)
           
protected  void finalize()
           
 MessageStream getBrokerStream()
           
 boolean isClosed()
           
 void login(java.lang.String name, java.lang.String password)
           
 void send(java.lang.String type, java.lang.String to, java.lang.String body)
           
 void send(java.lang.String type, java.lang.String to, java.lang.String body, java.lang.String subject)
           
 void setCallback(MessageStream callback)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XmppClient

public XmppClient(java.net.InetAddress address,
                  int port)

XmppClient

public XmppClient(java.lang.String address,
                  int port)
Method Detail

connect

public void connect(java.lang.String name,
                    java.lang.String password)
             throws java.io.IOException
Throws:
java.io.IOException

connect

public void connect()
             throws java.io.IOException
Throws:
java.io.IOException

login

public void login(java.lang.String name,
                  java.lang.String password)
           throws java.io.IOException
Throws:
java.io.IOException

setCallback

public void setCallback(MessageStream callback)

send

public void send(java.lang.String type,
                 java.lang.String to,
                 java.lang.String body)
          throws java.io.IOException
Throws:
java.io.IOException

send

public void send(java.lang.String type,
                 java.lang.String to,
                 java.lang.String body,
                 java.lang.String subject)
          throws java.io.IOException
Throws:
java.io.IOException

isClosed

public boolean isClosed()

close

public void close()

getBrokerStream

public MessageStream getBrokerStream()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable