public class PagedResultsImpl extends AbstractControl implements PagedResults
This control is included in the searchRequest and searchResultDone
messages as part of the controls field of the LDAPMessage, as defined
in Section 4.1.12 of [LDAPv3]. The structure of this control is as
follows:
pagedResultsControl ::= SEQUENCE {
controlType 1.2.840.113556.1.4.319,
criticality BOOLEAN DEFAULT FALSE,
controlValue searchControlValue
}
The searchControlValue is an OCTET STRING wrapping the BER-encoded
version of the following SEQUENCE:
realSearchControlValue ::= SEQUENCE {
size INTEGER (0..maxInt),
-- requested page size from client
-- result set size estimate from server
cookie OCTET STRING
}
| Modifier and Type | Field and Description |
|---|---|
private byte[] |
cookie
The exchanged cookie
|
private int |
size
The number of entries to return, or returned
|
OID| Constructor and Description |
|---|
PagedResultsImpl()
Creates a new instance of PagedResultsDecorator.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
byte[] |
getCookie() |
int |
getCookieValue()
This method is ApacheDS specific, do not use for other LDAP servers.
|
int |
getSize() |
int |
hashCode() |
void |
setCookie(byte[] cookie)
Set the cookie
|
void |
setSize(int size)
Set the number of entry requested or returned
|
String |
toString()
Return a String representing this PagedSearchControl.
|
getOid, isCritical, setCriticalclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetOid, isCritical, setCriticalprivate int size
private byte[] cookie
public PagedResultsImpl()
public int getSize()
getSize in interface PagedResultspublic void setSize(int size)
setSize in interface PagedResultssize - The number of entriespublic byte[] getCookie()
getCookie in interface PagedResultspublic void setCookie(byte[] cookie)
setCookie in interface PagedResultscookie - The cookie to store in this controlpublic int getCookieValue()
getCookieValue in interface PagedResultspublic int hashCode()
hashCode in class AbstractControlObject.hashCode()public boolean equals(Object other)
equals in class AbstractControlObject.equals(Object)public String toString()
toString in class AbstractControlCopyright © 2003–2022 The Apache Software Foundation. All rights reserved.