powered by Jive Software

How to read incoming subscriber request

i have created a node using smack in pubsub which requires the authorization from the publisher , so when a subscriber tries to subscribe a request goes to the publisher whether to approve the subscriber or not.

at publisher’s end i am getting following stanza but i dont know which event is able to read/parse this incoming stanza in smack so that i can read the values of xml tags , so can any one tell me which listener i shoud use ?

PubSub subscriber request

Use the following form to approve or deny the subscription request.

                 <value>[http://jabber.org/protocol/pubsub#subscribe_authorization](http://jabber.org/protocol/pubsub#subscribe_authorization)</value>

9QojXw0GKibSGF6eu5xOzurK8m2iFMp9jJcO4llb

fdf72c24/loc

                 <value>88f37b90@example.com</value>

0

You will have to biuld that functionality yourself, as the current pubsub API doesn’t support that functionality yet.

SMACK-408

can you guide me how would i do that , do i need to read incoming message packets and parse it manually ?

is that the way ?