|
All LDAP Classes Internal LDAP Classes |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.novell.ldap.LDAPControl
com.novell.ldap.controls.LDAPPagedResultsControl
public class LDAPPagedResultsControl
LDAPPagedResultsControl is a Server Control to specify how search results are to be returned in pages of specified size by the server. If the control was marked "critical", the whole search operation will fail if the paged results control is not supported. This control is specified in RFC2696
| Field Summary | |
|---|---|
private byte[] |
Cookie
|
private static byte[] |
EMPTY_COOKIE
Empty cookie |
private int |
pageSize
|
private static java.lang.String |
requestOID
The requestOID of the paged results control |
private static java.lang.String |
responseOID
The responseOID of the paged results control |
| Constructor Summary | |
|---|---|
LDAPPagedResultsControl(int pageSize,
boolean critical)
Constructs a paged results control with requested page size |
|
LDAPPagedResultsControl(int pagesize,
byte[] cookie,
boolean critical)
Constructs a paged results control with requested page size and cookie |
|
| Method Summary | |
|---|---|
byte[] |
getCookie()
Returns the current cookie |
int |
getPageSize()
Returns the current page size value |
void |
setCookie(byte[] cookie)
Sets new cookie value |
private void |
setEncodedValue()
|
void |
setPageSize(int pagesize)
Sets the request page size value |
| Methods inherited from class com.novell.ldap.LDAPControl |
|---|
clone, getID, getValue, isCritical, readDSML, readExternal, register, setValue, toString, writeDSML, writeExternal |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static java.lang.String requestOID
private static java.lang.String responseOID
private static final byte[] EMPTY_COOKIE
private int pageSize
private byte[] Cookie
| Constructor Detail |
|---|
public LDAPPagedResultsControl(int pagesize,
byte[] cookie,
boolean critical)
pageSize - Requested page size.Cookie - Paged Results cookie.critical - True if the search operation is to fail if the
server does not support this control.
public LDAPPagedResultsControl(int pageSize,
boolean critical)
pageSize - Requested page size.critical - True if the search operation is to fail if the
server does not support this control.| Method Detail |
|---|
private void setEncodedValue()
public int getPageSize()
public void setPageSize(int pagesize)
pageSize - new page size valuepublic byte[] getCookie()
public void setCookie(byte[] cookie)
cookie - new cookie value
|
All LDAP Classes Internal LDAP Classes |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||