public class EntryDnSearchResultHandler extends CopySearchResultHandler
EntryDnSearchResultHandler
adds the search result DN as an
attribute to the result set. Provides a client side implementation of RFC
5020.logger
Constructor and Description |
---|
EntryDnSearchResultHandler() |
Modifier and Type | Method and Description |
---|---|
String |
getDnAttributeName()
Returns the DN attribute name.
|
boolean |
isAddIfExists()
Returns whether to add the entryDN if an attribute of the same name exists.
|
protected Attributes |
processAttributes(SearchCriteria sc,
SearchResult sr)
Process the attributes of an ldap search.
|
void |
setAddIfExists(boolean b)
Sets whether to add the entryDN if an attribute of the same name exists.
|
void |
setDnAttributeName(String s)
Sets the DN attribute name.
|
getAttributeHandler, processDn, processResult, setAttributeHandler
process, process, process
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
process, process, process
public String getDnAttributeName()
String
public void setDnAttributeName(String s)
s
- String
public boolean isAddIfExists()
boolean
public void setAddIfExists(boolean b)
b
- boolean
protected Attributes processAttributes(SearchCriteria sc, SearchResult sr) throws NamingException
processAttributes
in class CopySearchResultHandler
sc
- SearchCriteria
used to find search resultsr
- SearchResult
to extract the attributes fromAttributes
processed attributesNamingException
- if the LDAP returns an errorCopyright © 2016. All rights reserved.