Project

General

Profile

How to instantiate the interface is the HTTP get request ?

Moffitt tig
Added almost 3 years ago

execGet = { Service service, callback, jid , localPart, domain ->

}

The HTTP request in this way, how to instantiate the Muc package a IMucRepository interface?

thank you 。


Replies (2)

Added by Andrzej Wójcik IoT 1 CloudTigaseTeam almost 3 years ago

This is same question as asked in RE: MUC component: is there a way to get all of group-cha...

No, it is not possible to instantiate IMucRepository implementation in HTTP script. To access IMucRepository instance you need to use description (also already mentioned in above thread) - as already mentioned in RE: MUC component: is there a way to get all of group-cha...

You can create an admin ad-hoc scrip which is executed within context of MUC component, and you'll get access to mucReepository. Please check those scripts: https://projects.tigase.org/projects/tigase-muc/repository/revisions/master/show/src/main/groovy/muc/admin

Added by Moffitt tig almost 3 years ago

Thank you very much !

HTTP offer access component method? HTTP has to the operation of the muc?

    (1-2/2)