public class UserSearch
extends org.jivesoftware.smack.packet.SimpleIQ
| Modifier and Type | Class and Description |
|---|---|
static class |
UserSearch.Provider
Internal Search service Provider.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELEMENT |
static java.lang.String |
NAMESPACE |
| Constructor and Description |
|---|
UserSearch()
Creates a new instance of UserSearch.
|
| Modifier and Type | Method and Description |
|---|---|
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, getChildElementName, getChildElementNamespace, getChildElementXML, getType, isRequestIQ, setType, toXMLaddCommonAttributes, addExtension, addExtensions, appendErrorIfExists, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensions, getExtensionsXML, getFrom, getLanguage, getPacketID, getStanzaId, getTo, hasExtension, hasExtension, hasStanzaIdSet, overrideExtension, removeExtension, removeExtension, setError, setFrom, setLanguage, setPacketID, setStanzaId, setTo, toStringpublic static final java.lang.String ELEMENT
public static final java.lang.String NAMESPACE
public 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