|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.control.AbstractControl
org.ldaptive.control.PagedResultsControl
public class PagedResultsControl
Request/response control for PagedResults. See RFC 2696. Control is defined as:
realSearchControlValue ::= SEQUENCE {
size INTEGER (0..maxInt),
-- requested page size from client
-- result set size estimate from server
cookie OCTET STRING
}
| Field Summary | |
|---|---|
static String |
OID
OID of this control. |
| Fields inherited from class org.ldaptive.control.AbstractControl |
|---|
logger |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class org.ldaptive.control.AbstractControl |
|---|
equals, getCriticality, getOID |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.ldaptive.control.Control |
|---|
getCriticality, getOID |
| Field Detail |
|---|
public static final String OID
| Constructor Detail |
|---|
public PagedResultsControl()
public PagedResultsControl(boolean critical)
critical - whether this control is criticalpublic PagedResultsControl(int size)
size - paged results size
public PagedResultsControl(int size,
boolean critical)
size - paged results sizecritical - whether this control is critical
public PagedResultsControl(int size,
byte[] value,
boolean critical)
size - paged results sizevalue - paged results cookiecritical - whether this control is critical| Method Detail |
|---|
public int getSize()
public void setSize(int size)
size - paged results sizepublic byte[] getCookie()
public void setCookie(byte[] value)
value - paged results cookiepublic int hashCode()
hashCode in class AbstractControlpublic String toString()
toString in class Objectpublic byte[] encode()
encode in interface RequestControlpublic void decode(byte[] berValue)
decode in interface ResponseControlberValue - BER encoded response control
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||