public class RangeEntryHandler extends AbstractSearchEntryHandler
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.
Modifier and Type | Field and Description |
---|---|
private static String |
END_OF_RANGE
The character indicating that the end of the range has been reached.
|
private static int |
HASH_CODE_SEED
hash code seed.
|
private static String |
RANGE_FORMAT
The format used to calculate attribute IDs for subsequent searches.
|
private static Pattern |
RANGE_PATTERN
The pattern matching the range attribute ID.
|
private static String |
RANGE_PATTERN_STRING
The expression matching the range attribute ID "<id>range=<X>-<Y>".
|
logger
Constructor and Description |
---|
RangeEntryHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
protected void |
handleAttributes(Connection conn,
SearchRequest request,
SearchEntry entry)
Handle the attributes of a search entry.
|
int |
hashCode() |
handle, handleAttribute, handleAttributeName, handleAttributeValue, handleAttributeValue, handleDn, initializeRequest
private static final int HASH_CODE_SEED
private static final String END_OF_RANGE
private static final String RANGE_FORMAT
private static final String RANGE_PATTERN_STRING
private static final Pattern RANGE_PATTERN
protected void handleAttributes(Connection conn, SearchRequest request, SearchEntry entry) throws LdapException
AbstractSearchEntryHandler
handleAttributes
in class AbstractSearchEntryHandler
conn
- the search was performed onrequest
- used to find the search entryentry
- search entry to extract the attributes fromLdapException
- if the LDAP returns an errorpublic boolean equals(Object o)
equals
in class AbstractSearchEntryHandler
public int hashCode()
hashCode
in class AbstractSearchEntryHandler
Copyright © 2003-2019 Virginia Tech. All Rights Reserved.