Package org.jivesoftware.smack.roster
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.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionprocessSubscribe(org.jxmpp.jid.Jid from, org.jivesoftware.smack.packet.Presence subscribeRequest) Handle incoming presence subscription requests.
-
Method Details
-
processSubscribe
SubscribeListener.SubscribeAnswer processSubscribe(org.jxmpp.jid.Jid from, org.jivesoftware.smack.packet.Presence subscribeRequest) Handle incoming presence subscription requests.- Parameters:
from- the JID requesting the subscription.subscribeRequest- the presence stanza used for the request.- Returns:
- a answer to the request, or
null
-