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, setAttributeHandlerprocess, process, processclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprocess, process, processpublic String getDnAttributeName()
Stringpublic void setDnAttributeName(String s)
s - Stringpublic boolean isAddIfExists()
booleanpublic void setAddIfExists(boolean b)
b - booleanprotected Attributes processAttributes(SearchCriteria sc, SearchResult sr) throws NamingException
processAttributes in class CopySearchResultHandlersc - SearchCriteria used to find search resultsr - SearchResult to extract the attributes fromAttributes processed attributesNamingException - if the LDAP returns an errorCopyright © 2014. All rights reserved.