public final class ResultSetManagement extends Object
<set/> element in the http://jabber.org/protocol/rsm namespace.| Modifier and Type | Field and Description |
|---|---|
static String |
NAMESPACE
http://jabber.org/protocol/rsm
|
| Modifier and Type | Method and Description |
|---|---|
static ResultSetManagement |
forCount(int count)
Deprecated.
|
static ResultSetManagement |
forCount(Integer count,
Integer index,
String first,
String last)
Deprecated.
|
static ResultSetManagement |
forCountResponse(int count)
Gets a result set, which has a count information.
|
static ResultSetManagement |
forFirstPage(int max)
Gets a result set, which requests the first page.
|
static ResultSetManagement |
forItemCount()
Gets a result set, which gets the item count of a result without retrieving the items themselves.
|
static ResultSetManagement |
forLastPage(int max)
Gets a result set, which requests the last page.
|
static ResultSetManagement |
forLimit(int limit)
Deprecated.
|
static ResultSetManagement |
forLimit(int limit,
int index)
Gets a result set, which starts at a particular index.
|
static ResultSetManagement |
forNextPage(int max,
String id)
Gets a result set, which requests the next page after a specified item.
|
static ResultSetManagement |
forPreviousPage(int max,
String id)
Gets a result set, which requests the previous page before a specified item.
|
static ResultSetManagement |
forResponse(Integer count,
Integer index,
String first,
String last)
Gets a result set, which has a count information, including first and last item.
|
String |
getAfter()
Gets the 'after' element.
|
String |
getBefore()
Gets the 'before' element.
|
String |
getFirstItem()
Gets the first item.
|
Integer |
getFirstItemIndex()
Gets the first item's index.
|
Integer |
getIndex()
Gets the index.
|
Integer |
getItemCount()
Gets the item count of a result set.
|
String |
getLastItem()
Gets the last item.
|
Integer |
getMaxSize()
Gets the max size.
|
boolean |
isRequestingCount()
Indicates, whether this RSM is used for requesting the item count.
|
ResultSetManagement |
nextPage(int max)
Creates the result set request for the next page.
|
ResultSetManagement |
previousPage(int max)
Creates the result set request for the previous page.
|
public static final String NAMESPACE
public final ResultSetManagement nextPage(int max)
max - The number of items in the page.public final ResultSetManagement previousPage(int max)
max - The number of items in the page.@Deprecated public static ResultSetManagement forLimit(int limit)
forFirstPage(int)limit - The limit, i.e. the maximum number of items.public static ResultSetManagement forFirstPage(int max)
max - The item count per page.public static ResultSetManagement forNextPage(int max, String id)
max - The item count per page.id - The id of the last item of the previous page. This should be the getLastItem() ()} of the previous page.public static ResultSetManagement forPreviousPage(int max, String id)
max - The item count per page.id - The id of the first item of the next page. This should be the getFirstItem() of the next page.public static ResultSetManagement forLastPage(int max)
max - The item count per page.public static ResultSetManagement forLimit(int limit, int index)
limit - The item count per page.index - The index to start from.@Deprecated public static ResultSetManagement forCount(int count)
forCountResponse(int)count - The item count per page.public static ResultSetManagement forCountResponse(int count)
count - The item count per page.@Deprecated public static ResultSetManagement forCount(Integer count, Integer index, String first, String last)
forResponse(Integer, Integer, String, String)count - The item count per page.index - The index of the first item.first - The first item.last - The last item.public static ResultSetManagement forResponse(Integer count, Integer index, String first, String last)
count - The item count per page.index - The index of the first item.first - The first item.last - The last item.public static ResultSetManagement forItemCount()
public final Integer getItemCount()
public final String getFirstItem()
public final Integer getFirstItemIndex()
public final String getLastItem()
public final Integer getMaxSize()
public final String getAfter()
public final String getBefore()
public final Integer getIndex()
public final boolean isRequestingCount()
Copyright © 2014–2016 XMPP.rocks. All rights reserved.