public abstract class AbstractBinaryAttributeHandler extends AbstractSearchEntryHandler
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.
|
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.
|
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.
|
equals, handle, handleAttribute, handleAttributeName, handleAttributeValue, handleAttributeValue, handleDn, hashCodepublic 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 handlerCopyright © 2023. All rights reserved.