Jingle PacketExtension

Hello,

I’'m trying to create java classes that represent Jingle xml.

The IQ-class is used as a base and we set the jingle-element as child element. I’'d like to be able to add multiple content-elements as specified in JEP-0166. However, I can only add one packetextension to a child element, which would result in adding only one content element.

Is their any way in which I can add more than just one packetextension?

Hi,

does http://www.jivesoftware.org/community/message.jspa?messageID=113265 solve your problem or is the class just a subset of the required implementation?

LG

well, that’'s not really what I mean.

We’'d like to create packets that look roughly like this

<iq>

<jingle>

<content>

<describtion>

<transport>

</content>

<content>

<describtion>

<transport>

</content>

</jingle>

</iq>

originally we though we would create an org.xmpp.packet.IQ and then add a self created JinglePacketExtension to the packet, to which we’'d futher add n[/i] times a self created JingleContentExtension.

However, you have to define a child element, otherwise you can’'t add an packet extenstion. So we set the jingle element as child extension, but now the problem arises then you can only add one packet extension to a Packet.childElement . That would mean we can only add at most one ContentPacketExtension to the Jinglepacket. We would like to be able to add more content elements to the packet. I hope I made the problem more clear.

Basicly the interface of org.xmpp.packet.IQ is a bit “whacky”

you got IQ.setChildElement for the Jingle part

and IQ.addExtension() for adding one or MORE!! PacketExtensions

but there is no way to get multiple packetextensions.

I think there also should be

public List getExtensions(String name, String namespace)

and

public int deleteExtensions(String name, String namespace)

//returns the number of deleted extensions

then working multiple extensions should be easyer

Hey guys,

BTW, if you’'re looking to do Jingle client-side then I would recommend looking at the “soc” branch of Smack. Quite a bit of Jingle work has been done there.

Regards,

Matt

google searches on “jingle” in the java api of Smack didn’'t give any results

stevenh wrote:

I have no idea what you mean with “soc” branch

http://www.jivesoftware.org/fisheye/viewrep/svn-org/smack/branches/soc

(svn co http://svn.jivesoftware.org/svn/repos/smack/branches/soc smack-jingle)

google searches on “jingle” in the java api of Smack didn’'t give any results

http://code.google.com/soc/adium/appinfo.html?csaid=5BC5BCA653E301BF

http://adiumx.com/soc/author/saurin/

In http://adiumx.com/soc/author/saurin/, Alvaro said:

Ok, 1 month left and I?m behind schedule. However, I think I can finish the Jingle implementation this week, finally. And I have to start to work with Andreas in order to have all this stuff in the Objective-C side?

Is that Andreas you?

aznidin wrote:

Is that Andreas you?

Yep