Class UserSearchManager


  • public class UserSearchManager
    extends java.lang.Object
    The UserSearchManager is a facade built upon Jabber Search Services (XEP-055) to allow for searching repositories on a Jabber Server. This implementation allows for transparency of implementation of searching (DataForms or No DataForms), but allows the user to simply use the DataForm model for both types of support.
     XMPPConnection con = new XMPPTCPConnection("jabber.org");
     con.login("john", "doe");
     UserSearchManager search = new UserSearchManager(con, "users.jabber.org");
     Form searchForm = search.getSearchForm();
     Form answerForm = searchForm.createAnswerForm();
     answerForm.setAnswer("last", "DeMoro");
     ReportedData data = search.getSearchResults(answerForm);
     // Use Returned Data