/** * Parses the specified LDAP search result for a page cookie. * * @param sr The LDAP search result. Must not be {@code null}. * * @return The page cookie, {@code null} if not found or undefined. */ private static ASN1OctetString parsePageCookie(final SearchResult sr) { Control control = sr.getResponseControl(SimplePagedResultsControl.PAGED_RESULTS_OID); if (control instanceof SimplePagedResultsControl) { SimplePagedResultsControl spr = (SimplePagedResultsControl)control; return spr.getCookie(); } else { return null; } }
/** * Parses the specified LDAP search result for a page cookie. * * @param sr The LDAP search result. Must not be {@code null}. * * @return The page cookie, {@code null} if not found or undefined. */ private static ASN1OctetString parsePageCookie(final SearchResult sr) { Control control = sr.getResponseControl(SimplePagedResultsControl.PAGED_RESULTS_OID); if (control instanceof SimplePagedResultsControl) { SimplePagedResultsControl spr = (SimplePagedResultsControl)control; return spr.getCookie(); } else { return null; } }
throws LDAPException final Control c = result.getResponseControl(SERVER_SIDE_SORT_RESPONSE_OID); if (c == null)
throws LDAPException final Control c = result.getResponseControl(DIRSYNC_OID); if (c == null)
throws LDAPException final Control c = result.getResponseControl(PAGED_RESULTS_OID); if (c == null)
throws LDAPException final Control c = result.getResponseControl(VIRTUAL_LIST_VIEW_RESPONSE_OID); if (c == null)
result.getResponseControl(MATCHING_ENTRY_COUNT_RESPONSE_OID); if (c == null)