powered by Jive Software

Question about Smack Provider Architecture

I’m attempting to write minimal Jingle Extension that one can just plug and use. The documentation I found so far is good but I have few questions I could not find an answer:

  1. How does IQIntrospectionProvider parse and assign nested XML? I mean the time example is good and simple, but how will IQ class look like for XML like
<iq from='romeo@montague.lit/orchard'
    id='zid615d9'
    to='juliet@capulet.lit/balcony'
    type='set'>
  <jingle xmlns='urn:xmpp:jingle:1'
          action='session-initiate'
          initiator='romeo@montague.lit/orchard'
          sid='a73sjjvkla37jfea'>
    <content creator='initiator' name='this-is-a-stub'>
      <description xmlns='urn:xmpp:jingle:apps:stub:0'/>
      <transport xmlns='urn:xmpp:jingle:transports:stub:0'/>
    </content>
  </jingle>
</iq>
  1. I would need to be listening to all IQ that are in jingle namespace so that I can notify registered listerners and consequently send responses. How can I listen for only IQs under Jingle namespace. Am yet to find document explaining that (I might be missing it sitting somewehere)

Thanks

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.