public class PagedResultsControl extends AbstractControl implements RequestControl, ResponseControl
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 |
|---|---|
static String |
OID
OID of this control.
|
logger| Constructor and Description |
|---|
PagedResultsControl()
Default constructor.
|
PagedResultsControl(boolean critical)
Creates a new paged results control.
|
PagedResultsControl(int size)
Creates a new paged results control.
|
PagedResultsControl(int size,
boolean critical)
Creates a new paged results control.
|
PagedResultsControl(int size,
byte[] value,
boolean critical)
Creates a new paged results control.
|
| Modifier and Type | Method and Description |
|---|---|
void |
decode(byte[] berValue)
Initializes this response control with the supplied BER encoded data.
|
byte[] |
encode()
Provides the BER encoding of this control.
|
byte[] |
getCookie()
Returns the paged results cookie.
|
int |
getSize()
Returns the paged results size.
|
int |
hashCode()
Returns the hash code for this object.
|
void |
setCookie(byte[] value)
Sets the paged results cookie.
|
void |
setSize(int size)
Sets the paged results size.
|
String |
toString() |
equals, getCriticality, getOIDclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetCriticality, getOIDpublic static final String OID
public PagedResultsControl()
public PagedResultsControl(boolean critical)
critical - whether this control is criticalpublic PagedResultsControl(int size)
size - paged results sizepublic PagedResultsControl(int size,
boolean critical)
size - paged results sizecritical - whether this control is criticalpublic PagedResultsControl(int size,
byte[] value,
boolean critical)
size - paged results sizevalue - paged results cookiecritical - whether this control is criticalpublic int getSize()
public void setSize(int size)
size - paged results sizepublic byte[] getCookie()
public void setCookie(byte[] value)
value - paged results cookiepublic int hashCode()
AbstractControlhashCode in class AbstractControlpublic byte[] encode()
RequestControlencode in interface RequestControlpublic void decode(byte[] berValue)
ResponseControldecode in interface ResponseControlberValue - BER encoded response controlCopyright © 2023. All rights reserved.