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 |
|---|---|
DataForm |
getSearchForm(org.jivesoftware.smack.XMPPConnection con,
org.jxmpp.jid.DomainBareJid searchService)
Returns the form for all search fields supported by the search service.
|
ReportedData |
sendSearchForm(org.jivesoftware.smack.XMPPConnection con,
DataForm searchForm,
org.jxmpp.jid.DomainBareJid searchService)
Sends the filled out answer form to be sent and queried by the search service.
|
ReportedData |
sendSimpleSearchForm(org.jivesoftware.smack.XMPPConnection con,
DataForm searchForm,
org.jxmpp.jid.DomainBareJid searchService)
Sends the filled out answer form to be sent and queried by the search service.
|
createErrorResponse, createErrorResponse, createErrorResponse, createResultIQ, getChildElementName, getChildElementNamespace, getChildElementQName, getChildElementXML, getElementName, getType, setType, toString, toXMLaddCommonAttributes, addExtension, addExtensions, appendErrorIfExists, getDefaultLanguage, getError, getExtension, getExtension, getExtension, getExtensionElement, getExtensions, getExtensions, getExtensions, getExtensions, getExtensionsMap, getFrom, getLanguage, getNamespace, getStanzaId, getTo, hasExtension, hasExtension, hasStanzaIdSet, logCommonAttributes, overrideExtension, removeExtension, removeExtension, setError, setError, setFrom, setLanguage, setNewStanzaId, setStanzaId, setStanzaId, setTo, throwIfNoStanzaIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final java.lang.String ELEMENT
public static final java.lang.String NAMESPACE
public DataForm getSearchForm(org.jivesoftware.smack.XMPPConnection con, org.jxmpp.jid.DomainBareJid searchService) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException
con - the current XMPPConnection.searchService - the search service to use. (ex. search.jivesoftware.com)org.jivesoftware.smack.XMPPException.XMPPErrorException - if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NoResponseException - if there was no response from the remote entity.org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected.java.lang.InterruptedException - if the calling thread was interrupted.public ReportedData sendSearchForm(org.jivesoftware.smack.XMPPConnection con, DataForm searchForm, org.jxmpp.jid.DomainBareJid searchService) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException
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.XMPPErrorException - if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NoResponseException - if there was no response from the remote entity.org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected.java.lang.InterruptedException - if the calling thread was interrupted.public ReportedData sendSimpleSearchForm(org.jivesoftware.smack.XMPPConnection con, DataForm searchForm, org.jxmpp.jid.DomainBareJid searchService) throws org.jivesoftware.smack.SmackException.NoResponseException, org.jivesoftware.smack.XMPPException.XMPPErrorException, org.jivesoftware.smack.SmackException.NotConnectedException, java.lang.InterruptedException
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.XMPPErrorException - if there was an XMPP error returned.org.jivesoftware.smack.SmackException.NoResponseException - if there was no response from the remote entity.org.jivesoftware.smack.SmackException.NotConnectedException - if the XMPP connection is not connected.java.lang.InterruptedException - if the calling thread was interrupted.