how to add to features disco list?

Submitted by Anonymous on Wed, 2009-10-28 18:24

Hi,

I've created implementation of XEP-0055 Jabber Search plugin, but I can't figure out how to add it to feature list, so that it will be returned in response to http://jabber.org/protocol/disco#info query.

So, what I have to do to have my plugin in this (http://jabber.org/protocol/disco#info) list?

Thank you.

Artur Hefczyc's picture

I am sorry for a delayed

I am sorry for a delayed response. I was unavailable last week.
Adding stuff to service discovery is actually very simple. Have a look at a good example in BindResource.java file.
Method: public Element[] supStreamFeatures(final XMPPResourceConnection session) returns supported array of stream features and method: public Element[] supDiscoFeatures(final XMPPResourceConnection session) returns an array of supported service disco features.

Have a look at example code and let me know if you still have questions.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

The content of this field is kept private and will not be shown publicly.