Class PagedResultsControlExchange

java.lang.Object
org.springframework.ldap.control.PagedResultsControlExchange
All Implemented Interfaces:
ControlExchange<PagedResultsControl,PagedResultsResponseControl>

public class PagedResultsControlExchange extends Object implements ControlExchange<PagedResultsControl,PagedResultsResponseControl>
A ControlExchange implementation for managing LDAP paged results request and response controls.

This class pairs a PagedResultsControl request with its corresponding PagedResultsResponseControl response. The paged results control allows clients to retrieve search results in pages of a specified size, with the response control providing a cookie for retrieving subsequent pages.

Instances of this class are immutable. The withResponse(PagedResultsResponseControl) method returns a new instance with an updated request control that includes the cookie from the response, ready for the next page request.

Since:
4.1
See Also: