public class UserSearch extends IQ
| Modifier and Type | Class and Description |
|---|---|
static class |
UserSearch.Provider
Internal Search service Provider.
|
DEFAULT_LANGUAGE, ID_NOT_AVAILABLE| Constructor and Description |
|---|
UserSearch()
Creates a new instance of UserSearch.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getChildElementXML()
Returns the sub-element XML section of the IQ packet, or null if there
isn't one.
|
Form |
getSearchForm(XMPPConnection con,
java.lang.String searchService)
Returns the form for all search fields supported by the search service.
|
ReportedData |
sendSearchForm(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(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()
IQExtensions of this class must override this method.
getChildElementXML in class IQpublic Form getSearchForm(XMPPConnection con, java.lang.String searchService) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException
con - the current XMPPConnection.searchService - the search service to use. (ex. search.jivesoftware.com)XMPPException.XMPPErrorExceptionSmackException.NoResponseExceptionSmackException.NotConnectedExceptionpublic ReportedData sendSearchForm(XMPPConnection con, Form searchForm, java.lang.String searchService) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException
con - the current XMPPConnection.searchForm - the Form to send for querying.searchService - the search service to use. (ex. search.jivesoftware.com)XMPPException.XMPPErrorExceptionSmackException.NoResponseExceptionSmackException.NotConnectedExceptionpublic ReportedData sendSimpleSearchForm(XMPPConnection con, Form searchForm, java.lang.String searchService) throws SmackException.NoResponseException, XMPPException.XMPPErrorException, SmackException.NotConnectedException
con - the current XMPPConnection.searchForm - the Form to send for querying.searchService - the search service to use. (ex. search.jivesoftware.com)XMPPException.XMPPErrorExceptionSmackException.NoResponseExceptionSmackException.NotConnectedException