public abstract class AbstractBinaryAttributeHandler extends AbstractSearchEntryHandler
| Modifier and Type | Field and Description |
|---|---|
private String |
attributeName
attribute name.
|
private static int |
HASH_CODE_SEED
hash code seed.
|
logger| Constructor and Description |
|---|
AbstractBinaryAttributeHandler() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract String |
convertValue(byte[] value)
Converts the supplied binary value to it's string form.
|
boolean |
equals(Object o) |
String |
getAttributeName()
Returns the attribute name to convert from binary to string.
|
protected void |
handleAttributes(Connection conn,
SearchRequest request,
SearchEntry entry)
Handle the attributes of a search entry.
|
int |
hashCode() |
void |
initializeRequest(SearchRequest request)
Initialize the search request for use with this entry handler.
|
void |
setAttributeName(String name)
Sets the attribute name to convert from binary to string.
|
handle, handleAttribute, handleAttributeName, handleAttributeValue, handleAttributeValue, handleDnprivate static final int HASH_CODE_SEED
private String attributeName
public String getAttributeName()
public void setAttributeName(String name)
name - of the attributeprotected void handleAttributes(Connection conn, SearchRequest request, SearchEntry entry) throws LdapException
AbstractSearchEntryHandlerhandleAttributes in class AbstractSearchEntryHandlerconn - the search was performed onrequest - used to find the search entryentry - search entry to extract the attributes fromLdapException - if the LDAP returns an errorprotected abstract String convertValue(byte[] value)
value - to convertpublic void initializeRequest(SearchRequest request)
SearchEntryHandlerinitializeRequest in interface SearchEntryHandlerinitializeRequest in class AbstractSearchEntryHandlerrequest - to initialize for this entry handlerpublic boolean equals(Object o)
equals in class AbstractSearchEntryHandlerpublic int hashCode()
hashCode in class AbstractSearchEntryHandlerCopyright © 2003-2019 Virginia Tech. All Rights Reserved.