jabber.presence
Class Presence

java.lang.Object
  extended by jabber.presence.Presence

public class Presence
extends java.lang.Object

Presence management class


Field Summary
static java.lang.String[] string_presence
           
 
Constructor Summary
Presence()
           
 
Method Summary
static void changePresence(java.lang.String _presence, java.lang.String message)
          Send presence information
static java.lang.String getPresence(int _presence)
          Returns the string corresponding to the presence value.
static java.lang.String getPresence(java.lang.String _presence)
          Returns the protocol string corresponding to the presence value.
static void getVCard(java.lang.String to)
          Get vcard with avatar
static java.lang.String sendFirstPresence(byte[] image)
          Create initial presence with avatar
static java.lang.String sendFirstVCard(byte[] image)
          Create initial vcard with avatar
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

string_presence

public static java.lang.String[] string_presence
Constructor Detail

Presence

public Presence()
Method Detail

changePresence

public static void changePresence(java.lang.String _presence,
                                  java.lang.String message)
Send presence information

Parameters:
_presence -

getPresence

public static java.lang.String getPresence(java.lang.String _presence)
Returns the protocol string corresponding to the presence value.

Parameters:
String -

getPresence

public static java.lang.String getPresence(int _presence)
Returns the string corresponding to the presence value.

Parameters:
int -

sendFirstPresence

public static java.lang.String sendFirstPresence(byte[] image)
Create initial presence with avatar


sendFirstVCard

public static java.lang.String sendFirstVCard(byte[] image)
Create initial vcard with avatar


getVCard

public static void getVCard(java.lang.String to)
Get vcard with avatar