public abstract class AbstractSearchEntryHandler extends Object implements SearchEntryHandler
Modifier and Type | Field and Description |
---|---|
protected Logger |
logger
Log for this class.
|
Constructor and Description |
---|
AbstractSearchEntryHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
HandlerResult<SearchEntry> |
handle(Connection conn,
SearchRequest request,
SearchEntry entry)
Handle the supplied result.
|
protected void |
handleAttribute(Connection conn,
SearchRequest request,
LdapAttribute attr)
Handle a single attribute.
|
protected String |
handleAttributeName(Connection conn,
SearchRequest request,
String name)
Returns the supplied attribute name unaltered.
|
protected void |
handleAttributes(Connection conn,
SearchRequest request,
SearchEntry entry)
Handle the attributes of a search entry.
|
protected byte[] |
handleAttributeValue(Connection conn,
SearchRequest request,
byte[] value)
Returns the supplied attribute value unaltered.
|
protected String |
handleAttributeValue(Connection conn,
SearchRequest request,
String value)
Returns the supplied attribute value unaltered.
|
protected String |
handleDn(Connection conn,
SearchRequest request,
SearchEntry entry)
Handle the dn of a search entry.
|
abstract int |
hashCode() |
void |
initializeRequest(SearchRequest request)
Initialize the search request for use with this entry handler.
|
protected final Logger logger
public HandlerResult<SearchEntry> handle(Connection conn, SearchRequest request, SearchEntry entry) throws LdapException
Handler
handle
in interface Handler<SearchRequest,SearchEntry>
handle
in interface SearchEntryHandler
conn
- connection the operation was executed onrequest
- executed by the operationentry
- produced from the operationLdapException
- if handling failsprotected String handleDn(Connection conn, SearchRequest request, SearchEntry entry)
conn
- the search was performed onrequest
- used to find the search entryentry
- search entry to extract the dn fromprotected void handleAttributes(Connection conn, SearchRequest request, SearchEntry entry) throws LdapException
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 void handleAttribute(Connection conn, SearchRequest request, LdapAttribute attr) throws LdapException
conn
- the search was performed onrequest
- used to find the search entryattr
- to handleLdapException
- if the LDAP returns an errorprotected String handleAttributeName(Connection conn, SearchRequest request, String name)
conn
- the search was performed onrequest
- used to find the search entryname
- to handleprotected String handleAttributeValue(Connection conn, SearchRequest request, String value)
conn
- the search was performed onrequest
- used to find the search entryvalue
- to handleprotected byte[] handleAttributeValue(Connection conn, SearchRequest request, byte[] value)
conn
- the search was performed onrequest
- used to find the search entryvalue
- to handlepublic void initializeRequest(SearchRequest request)
SearchEntryHandler
initializeRequest
in interface SearchEntryHandler
request
- to initialize for this entry handlerCopyright © 2003-2019 Virginia Tech. All Rights Reserved.