edu.vt.middleware.ldap.handler
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 |
|---|---|
java.lang.String |
getDnAttributeName()
Returns the DN attribute name.
|
boolean |
isAddIfExists()
Returns whether to add the entryDN if an attribute of the same name exists.
|
protected javax.naming.directory.Attributes |
processAttributes(SearchCriteria sc,
javax.naming.directory.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(java.lang.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 java.lang.String getDnAttributeName()
Stringpublic void setDnAttributeName(java.lang.String s)
s - Stringpublic boolean isAddIfExists()
booleanpublic void setAddIfExists(boolean b)
b - booleanprotected javax.naming.directory.Attributes processAttributes(SearchCriteria sc, javax.naming.directory.SearchResult sr) throws javax.naming.NamingException
processAttributes in class CopySearchResultHandlersc - SearchCriteria used to find search resultsr - SearchResult to extract the attributes fromAttributes processed attributesjavax.naming.NamingException - if the LDAP returns an errorCopyright © 2014. All Rights Reserved.