public class UserSearch
extends org.jivesoftware.smack.packet.IQ
| Modifier and Type | Class and Description |
|---|---|
static class |
UserSearch.Provider
Internal Search service Provider.
|
| Constructor and Description |
|---|
UserSearch()
Creates a new instance of UserSearch.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getChildElementXML() |
Form |
getSearchForm(org.jivesoftware.smack.XMPPConnection con,
java.lang.String searchService)
Returns the form for all search fields supported by the search service.
|
ReportedData |
sendSearchForm(org.jivesoftware.smack.XMPPConnection con,
Form searchForm,
java.lang.String searchService)
Sends the filled out answer form to be sent and queried by the search service.
|
ReportedData |
sendSimpleSearchForm(org.jivesoftware.smack.XMPPConnection con,
Form searchForm,
java.lang.String searchService)
Sends the filled out answer form to be sent and queried by the search service.
|
createErrorResponse, createResultIQ, getType, setType, toXMLaddCommonAttributes, addExtension, addExtensions, equals, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getTo, getXmlns, hashCode, nextID, removeExtension, setDefaultXmlns, setError, setFrom, setPacketID, setTo, toStringpublic java.lang.String getChildElementXML()
getChildElementXML in class org.jivesoftware.smack.packet.IQpublic Form getSearchForm(org.jivesoftware.smack.XMPPConnection con, java.lang.String searchService) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException
con - the current XMPPConnection.searchService - the search service to use. (ex. search.jivesoftware.com)org.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NoResponseExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionpublic ReportedData sendSearchForm(org.jivesoftware.smack.XMPPConnection con, Form searchForm, java.lang.String searchService) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException
con - the current XMPPConnection.searchForm - the Form to send for querying.searchService - the search service to use. (ex. search.jivesoftware.com)org.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NoResponseExceptionorg.jivesoftware.smack.SmackException.NotConnectedExceptionpublic ReportedData sendSimpleSearchForm(org.jivesoftware.smack.XMPPConnection con, Form searchForm, java.lang.String searchService) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException
con - the current XMPPConnection.searchForm - the Form to send for querying.searchService - the search service to use. (ex. search.jivesoftware.com)org.jivesoftware.smack.XMPPException.XMPPErrorExceptionorg.jivesoftware.smack.SmackException.NoResponseExceptionorg.jivesoftware.smack.SmackException.NotConnectedException