XMPPService (Google App Engine API for Java)

com.google.appengine.api.xmpp

Interface XMPPService



  • public interface XMPPService
    Interface for accessing XMPP status information, sending XMPP messages, and parsing XMPP responses.
    See Also:
    RFC 3921 for the XMPP specification.
    • Method Detail

      • getPresence

        Presence getPresence(JID jabberId)
        Given a JID, look up the user's status and return it. If the JID is invalid, an IllegalArgumentException will be thrown. Because of this, the isValid method on the returned Presence object will always return true.
        Parameters:
        jabberId - JID of the user whose presence should be fetched.
        Throws:
        java.lang.IllegalArgumentException - if the id is not valid
      • getPresence

        Presence getPresence(JID jabberId,
                             JID fromJid)
        Given a JID, look up the user's status and return it. If the JID is invalid, an IllegalArgumentException will be thrown. Because of this, the isValid method on the returned Presence object will always return true.
        Parameters:
        jabberId - JID of the user whose presence should be fetched.
        fromJid - JID of the chat bot. Can be null.
        Throws:
        java.lang.IllegalArgumentException - if the id is not valid
      • getPresence

        java.util.List<Presence> getPresence(java.lang.Iterable<JID> jabberIds)
        Given a JID, look up the user's status and return it. Uses a custom JID as the sender. Note that rather than raising an exception, the validity of a JID is indicated via the isValid method on Presence.
        Parameters:
        jabberIds - A collection of JIDs for users whose presence should be fetched.
      • getPresence

        java.util.List<Presence> getPresence(java.lang.Iterable<JID> jabberIds,
                                             JID fromJid)
        Given a JID, look up the user's status and return it. Uses a custom JID as the sender. Note that rather than raising an exception, the validity of a JID is indica