Package org.ldaptive.handler
Class AbstractEntryHandler<T>
java.lang.Object
org.ldaptive.transport.MessageFunctional<SearchRequest,SearchResponse>
org.ldaptive.transport.MessageFunctional.Function<SearchRequest,SearchResponse,T,T>
org.ldaptive.handler.AbstractEntryHandler<T>
- Type Parameters:
T
- type of object to handle
- All Implemented Interfaces:
Function<T,
T>
- Direct Known Subclasses:
AbstractBinaryAttributeHandler
,CaseChangeEntryHandler
,DnAttributeEntryHandler
,MergeAttributeEntryHandler
,MergeResultHandler
,PrimaryGroupIdHandler
,RangeEntryHandler
,RecursiveResultHandler
,SortResultHandler
public abstract class AbstractEntryHandler<T>
extends MessageFunctional.Function<SearchRequest,SearchResponse,T,T>
Base class for entry handlers which simply returns values unaltered.
-
Nested Class Summary
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
protected void
handleAttribute
(LdapAttribute attr) Handle a single attribute.protected String
handleAttributeName
(String name) Returns the supplied attribute name unaltered.protected void
handleAttributes
(LdapEntry entry) Handle the attributes of a search entry.protected byte[]
handleAttributeValue
(byte[] value) Returns the supplied attribute value unaltered.protected String
handleAttributeValue
(String value) Returns the supplied attribute value unaltered.protected String
Handle the dn of a search entry.void
handleEntry
(LdapEntry entry) Handle the entry.abstract int
hashCode()
Methods inherited from class org.ldaptive.transport.MessageFunctional
getConnection, getHandle, getRequest, setConnection, setHandle, setRequest
-
Field Details
-
logger
protected final org.slf4j.Logger loggerLog for this class.
-
-
Constructor Details
-
AbstractEntryHandler
public AbstractEntryHandler()
-
-
Method Details
-
handleEntry
Handle the entry.- Parameters:
entry
- to handle
-
handleDn
Handle the dn of a search entry.- Parameters:
entry
- search entry to extract the dn from- Returns:
- handled dn
-
handleAttributes
Handle the attributes of a search entry.- Parameters:
entry
- search entry to extract the attributes from
-
handleAttribute
Handle a single attribute.- Parameters:
attr
- to handle
-
handleAttributeName
Returns the supplied attribute name unaltered.- Parameters:
name
- to handle- Returns:
- handled name
-
handleAttributeValue
Returns the supplied attribute value unaltered.- Parameters:
value
- to handle- Returns:
- handled value
-
handleAttributeValue
protected byte[] handleAttributeValue(byte[] value) Returns the supplied attribute value unaltered.- Parameters:
value
- to handle- Returns:
- handled value
-
equals
-
hashCode
public abstract int hashCode()
-