com.sun.im.service
Interface PresenceInfoListener


public interface PresenceInfoListener

object instantiated by the application allowing the provider to return data to the application asynchronously.

The Presence information format is defined in a pseudo-DTD.


Field Summary
static int PRESENCE_SUBSCRIPTION_ACCESS_DENIED
           
static int PRESENCE_SUBSCRIPTION_DISABLED
           
static int PRESENCE_SUBSCRIPTION_EXPIRED
           
static int PRESENCE_SUBSCRIPTION_NO_RESOURCE
           
static int PRESENCE_SUBSCRIPTION_OK
           
 
Method Summary
 void onError(java.lang.String presentityURL, java.lang.String errorText)
          invoked by the provider when an error occurs.
 void onPresenceInfo(java.lang.String presenceInfo)
          invoked by the provider when requested presence information is received
 

Field Detail

PRESENCE_SUBSCRIPTION_OK

public static final int PRESENCE_SUBSCRIPTION_OK
See Also:
Constant Field Values

PRESENCE_SUBSCRIPTION_ACCESS_DENIED

public static final int PRESENCE_SUBSCRIPTION_ACCESS_DENIED
See Also:
Constant Field Values

PRESENCE_SUBSCRIPTION_NO_RESOURCE

public static final int PRESENCE_SUBSCRIPTION_NO_RESOURCE
See Also:
Constant Field Values

PRESENCE_SUBSCRIPTION_EXPIRED

public static final int PRESENCE_SUBSCRIPTION_EXPIRED
See Also:
Constant Field Values

PRESENCE_SUBSCRIPTION_DISABLED

public static final int PRESENCE_SUBSCRIPTION_DISABLED
See Also:
Constant Field Values
Method Detail

onPresenceInfo

public void onPresenceInfo(java.lang.String presenceInfo)
invoked by the provider when requested presence information is received

Parameters:
presenceInfo - presence info (XML)

onError

public void onError(java.lang.String presentityURL,
                    java.lang.String errorText)
invoked by the provider when an error occurs. No more presence information may subsequently be received through this listener

Parameters:
presentityURL - subscribed presentity
errorText - textual explanation of the cause of the subscription termination