Class RangeEntryHandler

  • All Implemented Interfaces:
    Function<SearchResponse,​SearchResponse>, SearchResultHandler

    public class RangeEntryHandler
    extends AbstractEntryHandler<SearchResponse>
    implements SearchResultHandler
    Rewrites attributes returned from Active Directory to include all values by performing additional searches. This behavior is based on the expired RFC "Incremental Retrieval of Multi-valued Properties" http://www.ietf.org/proceedings/53/I-D/draft-kashi-incremental-00.txt.

    For example, when the membership of a group exceeds 1500, requests for the member attribute will likely return an attribute with name "member;Range=0-1499" and 1500 values. For a group with just over 3000 members, subsequent searches will request "member;Range=1500-2999" and then "member;Range=3000-4499". When the returned attribute is of the form "member;Range=3000-*", all values have been retrieved.

    This handler should only be used with the SearchOperation.execute() method since it leverages the connection to make further searches.