Package org.ldaptive.ad.handler
Class AbstractBinaryAttributeHandler<T>
java.lang.Object
org.ldaptive.AbstractFreezable
org.ldaptive.transport.MessageFunctional<Q,S>
org.ldaptive.transport.MessageFunctional.Function<SearchRequest,SearchResponse,T,T>
org.ldaptive.transport.AbstractMessageFunctionalEntryHandler<T>
org.ldaptive.ad.handler.AbstractBinaryAttributeHandler<T>
- Type Parameters:
T- type of object to handle
- Direct Known Subclasses:
ObjectGuidHandler,ObjectSidHandler
public abstract class AbstractBinaryAttributeHandler<T>
extends AbstractMessageFunctionalEntryHandler<T>
Base class for entry handlers that convert a binary attribute to its string form.
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringattribute name.private static final inthash code seed.Fields inherited from class org.ldaptive.transport.AbstractMessageFunctionalEntryHandler
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract StringconvertValue(byte[] value) Converts the supplied binary value to its string form.booleanReturns the attribute name to convert from binary to string.protected voidhandleAttributes(LdapEntry entry) Handle the attributes of a search entry.inthashCode()voidsetAttributeName(String name) Sets the attribute name to convert from binary to string.voidsetRequest(SearchRequest request) Sets the request.Methods inherited from class org.ldaptive.transport.AbstractMessageFunctionalEntryHandler
handleAttribute, handleAttributeName, handleAttributeValue, handleAttributeValue, handleDn, handleEntryMethods inherited from class org.ldaptive.transport.MessageFunctional
getConnection, getHandle, getRequest, newInstance, setConnection, setHandleMethods inherited from class org.ldaptive.AbstractFreezable
assertMutable, freeze, freeze, freeze, isFrozen
-
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:AbstractMessageFunctionalEntryHandlerHandle the attributes of a search entry.- Overrides:
handleAttributesin classAbstractMessageFunctionalEntryHandler<T>- Parameters:
entry- search entry to extract the attributes from
-
convertValue
Converts the supplied binary value to its string form.- Parameters:
value- to convert- Returns:
- string form of the value
-
setRequest
Description copied from class:MessageFunctionalSets the request.- Overrides:
setRequestin classMessageFunctional<SearchRequest,SearchResponse> - Parameters:
request- request
-
equals
- Overrides:
equalsin classAbstractMessageFunctionalEntryHandler<T>
-
hashCode
public int hashCode()- Specified by:
hashCodein classAbstractMessageFunctionalEntryHandler<T>
-