public class UserSearchManager
extends java.lang.Object
Connection con = new XMPPConnection("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
Constructor and Description |
---|
UserSearchManager(Connection con)
Creates a new UserSearchManager.
|
Modifier and Type | Method and Description |
---|---|
Form |
getSearchForm(java.lang.String searchService)
Returns the form to fill out to perform a search.
|
ReportedData |
getSearchResults(Form searchForm,
java.lang.String searchService)
Submits a search form to the server and returns the resulting information
in the form of
ReportedData |
java.util.Collection |
getSearchServices()
Returns a collection of search services found on the server.
|
public UserSearchManager(Connection con)
con
- the Connection to use.public Form getSearchForm(java.lang.String searchService) throws XMPPException
searchService
- the search service to query.XMPPException
- thrown if a server error has occurred.public ReportedData getSearchResults(Form searchForm, java.lang.String searchService) throws XMPPException
ReportedData
searchForm
- the Form
to submit for searching.searchService
- the name of the search service to use.XMPPException
- thrown if a server error has occurred.public java.util.Collection getSearchServices() throws XMPPException
XMPPException
- thrown if a server error has occurred.Copyright © 2003-2007 Jive Software.