public final class Search extends Object
<query/> element in the jabber:iq:search namespace.
This class is immutable.
| Modifier and Type | Class and Description |
|---|---|
static class |
Search.Item
The implementation of a search result item.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
NAMESPACE
jabber:iq:search
|
| Constructor and Description |
|---|
Search()
Creates an empty search request.
|
Search(String first,
String last,
String nick,
String email)
Creates a search request, consisting of multiple search parameters.
|
Search(String first,
String last,
String nick,
String email,
ResultSetManagement resultSet,
String instructions,
DataForm dataForm)
Creates a search request, consisting of multiple search parameters.
|
| Modifier and Type | Method and Description |
|---|---|
DataForm |
getAdditionalInformation()
Gets additional information for the search, e.g. for gender.
|
String |
getEmail()
Gets the email address.
|
String |
getFirst()
Gets the first name.
|
String |
getInstructions()
Gets the search instructions.
|
List<Search.Item> |
getItems()
Gets the items of a search result.
|
String |
getLast()
Gets the last name.
|
String |
getNick()
Gets the nick name.
|
ResultSetManagement |
getResultSet()
Gets the result set information.
|
public static final String NAMESPACE
public Search()
public Search(String first, String last, String nick, String email)
first - The first name.last - The last name.nick - The nick name.email - The email.public Search(String first, String last, String nick, String email, ResultSetManagement resultSet, String instructions, DataForm dataForm)
first - The first name.last - The last name.nick - The nick name.email - The email.resultSet - The result set information.instructions - The instructions.dataForm - The data form.public final String getInstructions()
public final String getFirst()
public final String getLast()
public final String getNick()
public final String getEmail()
public final List<Search.Item> getItems()
public final DataForm getAdditionalInformation()
The fields defined in the 'jabber:iq:search' namespace are strictly limited to those specified in the schema. If a host needs to gather additional information, Data Forms SHOULD be used; a host MUST NOT add new fields to the 'jabber:iq:search' namespace. Support for extensibility via Data Forms is RECOMMENDED, but is not required for compliance with this document.
public final ResultSetManagement getResultSet()
Copyright © 2014–2017 XMPP.rocks. All rights reserved.