powered by Jive Software

Messenger type define

i view in messenge.java that it have some Type-safe enumeration for the type of a message.i want to added myself messenge Type define,examples i define a massenger type ‘‘bill’’ it will outside enum for five type.

thanks.

That would not be valid XMPP. You cannot add your own types or customize the XML schema that defines XMPP. Instead, you should add packet extensions to contain the data you’'re interested in. For example, if you wanted to send a stock quote, you could have:

<message to="foo" from="bar>
  <stockQuote xmlns="http://www.example.com/stockquote">
     <stock ticker="dell" value="65.423"/>
  </stockQuote>
</message>

Any packet exentions must be in a custom namespace. Does that make sense?

Regards,

Matt

i know your means,it will have some work to me:)