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,
org.jxmpp.jid.DomainBareJid searchService)
Returns the form for all search fields supported by the search service.
|
ReportedData |
sendSearchForm(org.jivesoftware.smack.XMPPConnection con,
Form 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,
Form 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, getChildElementXML, getType, initializeAsResultFor, initialzeAsResultFor, isRequestIQ, setType, toString, toXML
addCommonAttributes, addExtension, addExtensions, appendErrorIfExists, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensions, getFrom, getLanguage, getPacketID, getStanzaId, getTo, hasExtension, hasExtension, hasStanzaIdSet, logCommonAttributes, overrideExtension, removeExtension, removeExtension, setError, setError, setFrom, setFrom, setLanguage, setPacketID, setStanzaId, setStanzaId, setTo, setTo
public static final java.lang.String ELEMENT
public static final java.lang.String NAMESPACE
public Form 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
org.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smack.SmackException.NotConnectedException
java.lang.InterruptedException
public ReportedData sendSearchForm(org.jivesoftware.smack.XMPPConnection con, Form 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
org.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smack.SmackException.NotConnectedException
java.lang.InterruptedException
public ReportedData sendSimpleSearchForm(org.jivesoftware.smack.XMPPConnection con, Form 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
org.jivesoftware.smack.SmackException.NoResponseException
org.jivesoftware.smack.SmackException.NotConnectedException
java.lang.InterruptedException