Interface SubscribeListener

  • public interface SubscribeListener
    Handle incoming requests to subscribe to our presence. The processSubscribe(Jid, Presence) method may return a subscribe answer. If no subscribe answer is returned, the next listener will be notified and asked. If no listener returns an answer, then nothing happens.
    • Method Detail

      • processSubscribe

        SubscribeListener.SubscribeAnswer processSubscribe​(Jid from,
                                                           Presence subscribeRequest)
        Handle incoming presence subscription requests.
        from - the JID requesting the subscription.
        subscribeRequest - the presence stanza used for the request.
        a answer to the request, or null