/** * Submits a search form to the server and returns the resulting information * in the form of <code>ReportedData</code>. * * @param searchForm the <code>Form</code> to submit for searching. * @param searchService the name of the search service to use. * @return the ReportedData returned by the server. * @throws XMPPErrorException * @throws NoResponseException * @throws NotConnectedException * @throws InterruptedException */ public ReportedData getSearchResults(Form searchForm, DomainBareJid searchService) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException { return userSearch.sendSearchForm(con, searchForm, searchService); }
/** * Submits a search form to the server and returns the resulting information * in the form of <code>ReportedData</code> * * @param searchForm the <code>Form</code> to submit for searching. * @param searchService the name of the search service to use. * @return the ReportedData returned by the server. * @throws XMPPException thrown if a server error has occurred. */ public ReportedData getSearchResults(Form searchForm, String searchService) throws XMPPException { return userSearch.sendSearchForm(con, searchForm, searchService); }
/** * Submits a search form to the server and returns the resulting information * in the form of <code>ReportedData</code> * * @param searchForm the <code>Form</code> to submit for searching. * @param searchService the name of the search service to use. * @return the ReportedData returned by the server. * @throws XMPPException thrown if a server error has occurred. */ public ReportedData getSearchResults(Form searchForm, String searchService) throws XMPPException { return userSearch.sendSearchForm(con, searchForm, searchService); }
/** * Submits a search form to the server and returns the resulting information * in the form of <code>ReportedData</code> * * @param searchForm the <code>Form</code> to submit for searching. * @param searchService the name of the search service to use. * @return the ReportedData returned by the server. * @throws XMPPException thrown if a server error has occurred. */ public ReportedData getSearchResults(Form searchForm, String searchService) throws XMPPException { return userSearch.sendSearchForm(con, searchForm, searchService); }
/** * Submits a search form to the server and returns the resulting information * in the form of <code>ReportedData</code> * * @param searchForm the <code>Form</code> to submit for searching. * @param searchService the name of the search service to use. * @return the ReportedData returned by the server. * @throws XMPPException thrown if a server error has occurred. */ public ReportedData getSearchResults(Form searchForm, String searchService) throws XMPPException { return userSearch.sendSearchForm(con, searchForm, searchService); }
ReportedData data = userSearch.sendSearchForm(connection, answerForm, "search." + connection.getServiceName());
answerForm.setAnswer("search", "*"); ReportedData results = userSearch.sendSearchForm(Utils.getConnection(), answerForm, searchFormString); if (results != null) { List<ReportedData.Row> rows = results.getRows();