Package org.ldaptive.ad.handler
Class AbstractBinaryAttributeHandler<T>
java.lang.Object
org.ldaptive.transport.MessageFunctional<Q,S>
org.ldaptive.transport.MessageFunctional.Function<SearchRequest,SearchResponse,T,T>
org.ldaptive.handler.AbstractEntryHandler<T>
org.ldaptive.ad.handler.AbstractBinaryAttributeHandler<T>
- Type Parameters:
T
- type of object to handle
- All Implemented Interfaces:
Function<T,
T>
- Direct Known Subclasses:
ObjectGuidHandler
,ObjectSidHandler
Base class for entry handlers that convert a binary attribute to it's string form.
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
attribute name.private static final int
hash code seed.Fields inherited from class org.ldaptive.handler.AbstractEntryHandler
logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract String
convertValue
(byte[] value) Converts the supplied binary value to it's string form.boolean
Returns the attribute name to convert from binary to string.protected void
handleAttributes
(LdapEntry entry) Handle the attributes of a search entry.int
hashCode()
void
setAttributeName
(String name) Sets the attribute name to convert from binary to string.void
setRequest
(SearchRequest request) Methods inherited from class org.ldaptive.handler.AbstractEntryHandler
handleAttribute, handleAttributeName, handleAttributeValue, handleAttributeValue, handleDn, handleEntry
Methods inherited from class org.ldaptive.transport.MessageFunctional
getConnection, getHandle, getRequest, setConnection, setHandle
-
Field Details
-
HASH_CODE_SEED
private static final int HASH_CODE_SEEDhash code seed.- See Also:
-
attributeName
attribute name.
-
-
Constructor Details
-
AbstractBinaryAttributeHandler
public AbstractBinaryAttributeHandler()
-
-
Method Details
-
getAttributeName
Returns the attribute name to convert from binary to string.- Returns:
- attribute name
-
setAttributeName
Sets the attribute name to convert from binary to string.- Parameters:
name
- of the attribute
-
handleAttributes
Description copied from class:AbstractEntryHandler
Handle the attributes of a search entry.- Overrides:
handleAttributes
in classAbstractEntryHandler<T>
- Parameters:
entry
- search entry to extract the attributes from
-
convertValue
Converts the supplied binary value to it's string form.- Parameters:
value
- to convert- Returns:
- string form of the value
-
setRequest
- Overrides:
setRequest
in classMessageFunctional<SearchRequest,
SearchResponse>
-
equals
- Overrides:
equals
in classAbstractEntryHandler<T>
-
hashCode
public int hashCode()- Specified by:
hashCode
in classAbstractEntryHandler<T>
-