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, handleDn
private 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
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 errorprotected abstract String convertValue(byte[] value)
value
- to convertpublic void initializeRequest(SearchRequest request)
SearchEntryHandler
initializeRequest
in interface SearchEntryHandler
initializeRequest
in class AbstractSearchEntryHandler
request
- to initialize for this entry handlerpublic boolean equals(Object o)
equals
in class AbstractSearchEntryHandler
public int hashCode()
hashCode
in class AbstractSearchEntryHandler
Copyright © 2003-2019 Virginia Tech. All Rights Reserved.