[jdev] Can I define a content-type for messages?
Peter Saint-Andre
stpeter at stpeter.im
Mon Mar 23 09:28:37 CDT 2009
On 3/23/09 7:15 AM, Jan Torben Heuer wrote:
> On Monday 23 March 2009 14:05:02 Remko Tronçon wrote:
> Hi,
>
>>> Currently, I ignore the content-type in my prototype but that is not very
>>> elegant. Is a content type for messages already supported or can I easily
>>> derive such a message type?
>> What types of content are you sending? Messages currently only have
>> plain text bodies, and XHTML-IM bodies. If you want to add custom
>> payloads to messages, you can define your own element in your own
>> namespace to wrap the data in.
> There are differnt kinds of data which I want to exchange:
> RDF/XML, RDF N3 and both as PGP-encrypted.
>
> I don't want my application to guess the contents so I'd prefer to mark it
> somehow. I think that nobody here already did such stuff with the SMACK API?
If you want to PGP-encrypt things, use XEP-0027:
http://xmpp.org/extensions/xep-0027.html
Peter
--
Peter Saint-Andre
https://stpeter.im/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 6751 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://www.jabber.org/jdev/attachments/20090323/c90cc5da/attachment-0003.bin>
More information about the JDev
mailing list