public class UserSearch extends SimpleIQ
| Modifier and Type | Class and Description |
|---|---|
static class |
UserSearch.Provider
Internal Search service Provider.
|
IQ.IQChildElementXmlStringBuilder, IQ.Type| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELEMENT |
static java.lang.String |
NAMESPACE |
IQ_ELEMENT, QUERY_ELEMENTDEFAULT_LANGUAGE, ITEM, language, TEXT| Constructor and Description |
|---|
UserSearch()
Creates a new instance of UserSearch.
|
| Modifier and Type | Method and Description |
|---|---|
Form |
getSearchForm(XMPPConnection con,
org.jxmpp.jid.DomainBareJid searchService)
Returns the form for all search fields supported by the search service.
|
ReportedData |
sendSearchForm(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(XMPPConnection con,
Form searchForm,
org.jxmpp.jid.DomainBareJid searchService)
Sends the filled out answer form to be sent and queried by the search service.
|
getIQChildElementBuildercreateErrorResponse, createErrorResponse, createErrorResponse, createResultIQ, getChildElementName, getChildElementNamespace, getChildElementXML, getType, initializeAsResultFor, initialzeAsResultFor, isRequestIQ, setType, toString, toXMLaddCommonAttributes, addExtension, addExtensions, appendErrorIfExists, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensions, getExtensionsXML, getFrom, getLanguage, getPacketID, getStanzaId, getTo, hasExtension, hasExtension, hasStanzaIdSet, logCommonAttributes, overrideExtension, removeExtension, removeExtension, setError, setError, setFrom, setFrom, setLanguage, setPacketID, setStanzaId, setStanzaId, setTo, setTopublic static final java.lang.String ELEMENT
public static final java.lang.String NAMESPACE
public UserSearch()
public Form getSearchForm(XMPPConnection con, org.jxmpp.jid.DomainBareJid searchService) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException, java.lang.InterruptedException
con - the current XMPPConnection.searchService - the search service to use. (ex. search.jivesoftware.com)XMPPException.XMPPErrorExceptionSmackException.NoResponseExceptionSmackException.NotConnectedExceptionjava.lang.InterruptedExceptionpublic ReportedData sendSearchForm(XMPPConnection con, Form searchForm, org.jxmpp.jid.DomainBareJid searchService) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, 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)XMPPException.XMPPErrorExceptionSmackException.NoResponseExceptionSmackException.NotConnectedExceptionjava.lang.InterruptedExceptionpublic ReportedData sendSimpleSearchForm(XMPPConnection con, Form searchForm, org.jxmpp.jid.DomainBareJid searchService) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, 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)XMPPException.XMPPErrorExceptionSmackException.NoResponseExceptionSmackException.NotConnectedExceptionjava.lang.InterruptedException