Package org.ldaptive.handler
Class AbstractEntryHandler<T>
- java.lang.Object
-
- org.ldaptive.transport.MessageFunctional<Q,S>
-
- 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:
java.util.function.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.- Author:
- Middleware Services
-
-
Field Summary
Fields Modifier and Type Field Description protected org.slf4j.Logger
logger
Log for this class.
-
Constructor Summary
Constructors Constructor Description AbstractEntryHandler()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
protected void
handleAttribute(LdapAttribute attr)
Handle a single attribute.protected java.lang.String
handleAttributeName(java.lang.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 java.lang.String
handleAttributeValue(java.lang.String value)
Returns the supplied attribute value unaltered.protected java.lang.String
handleDn(LdapEntry entry)
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
-
-
-
-
Method Detail
-
handleEntry
public void handleEntry(LdapEntry entry)
Handle the entry.- Parameters:
entry
- to handle
-
handleDn
protected java.lang.String handleDn(LdapEntry entry)
Handle the dn of a search entry.- Parameters:
entry
- search entry to extract the dn from- Returns:
- handled dn
-
handleAttributes
protected void handleAttributes(LdapEntry entry)
Handle the attributes of a search entry.- Parameters:
entry
- search entry to extract the attributes from
-
handleAttribute
protected void handleAttribute(LdapAttribute attr)
Handle a single attribute.- Parameters:
attr
- to handle
-
handleAttributeName
protected java.lang.String handleAttributeName(java.lang.String name)
Returns the supplied attribute name unaltered.- Parameters:
name
- to handle- Returns:
- handled name
-
handleAttributeValue
protected java.lang.String handleAttributeValue(java.lang.String value)
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
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public abstract int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-